Update 2026.05.06 homework

This commit is contained in:
2026-05-13 15:07:06 -07:00
parent 9f04971c20
commit 93f5702d5f
2 changed files with 8 additions and 0 deletions

View File

@@ -4,6 +4,14 @@ class Student:
self.year = year self.year = year
class Node:
next = None
previous = None
def __init__(self, student: Student):
self.student = student
# homework: implement this Queue which orders students by year. # homework: implement this Queue which orders students by year.
# students with a higher year are placed in front of students with a lower year # students with a higher year are placed in front of students with a lower year
class Queue: class Queue: