Update 2026.05.06 homework
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
0
notes-and-examples/2026.05.13/homework.py
Normal file
0
notes-and-examples/2026.05.13/homework.py
Normal file
Reference in New Issue
Block a user