This commit is contained in:
@@ -8,17 +8,16 @@ class Stack:
|
|||||||
top: None | Node = None
|
top: None | Node = None
|
||||||
|
|
||||||
def add(self, value):
|
def add(self, value):
|
||||||
# Implement as an exercise
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def remove(self) -> None | Node:
|
def remove(self) -> None | Node:
|
||||||
# Implement as an exercise
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def peek(self) -> None | Node:
|
def peek(self) -> None | Node:
|
||||||
# Implement as an exercise
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# Homework:
|
# Homework:
|
||||||
# - Implement the other methods on the stack
|
# - Implement the other methods on the stack
|
||||||
# - Implement linked list methods (see homework from 2026.01.28)
|
# - Implement linked list methods (see homework from 2026.01.28)
|
||||||
|
#
|
||||||
|
# Submit to me by creating a .zip file and sending to: me@bchen.dev
|
||||||
|
|||||||
Reference in New Issue
Block a user