Add 2026.05.13 overview
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
#
|
|
||||||
|
|
||||||
class Student:
|
class Student:
|
||||||
def __init__(self, name: str, year: int):
|
def __init__(self, name: str, year: int):
|
||||||
self.name = name
|
self.name = name
|
||||||
self.year = year
|
self.year = year
|
||||||
|
|
||||||
|
|
||||||
# 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:
|
||||||
@@ -15,4 +14,3 @@ class Queue:
|
|||||||
|
|
||||||
def popleft(self) -> Student:
|
def popleft(self) -> Student:
|
||||||
return Student(name="", year=0)
|
return Student(name="", year=0)
|
||||||
|
|
||||||
|
|||||||
BIN
notes-and-examples/2026.05.13/overview.pdf
Normal file
BIN
notes-and-examples/2026.05.13/overview.pdf
Normal file
Binary file not shown.
Reference in New Issue
Block a user