From 862f2368862f87a05d441961398e46bd1c0f0f66 Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Wed, 11 Feb 2026 16:00:00 -0800 Subject: [PATCH] Add notes for 2026.02.11 --- shared/notes-and-examples/2026.02.11/main.py | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 shared/notes-and-examples/2026.02.11/main.py diff --git a/shared/notes-and-examples/2026.02.11/main.py b/shared/notes-and-examples/2026.02.11/main.py new file mode 100644 index 0000000..b75bd64 --- /dev/null +++ b/shared/notes-and-examples/2026.02.11/main.py @@ -0,0 +1,24 @@ +class Node: + prev_node = None + + def __init__(self, value) -> None: + self.value = value + +class Stack: + top: None | Node = None + + def add(self, value): + # Implement as an exercise + pass + + def remove(self) -> None | Node: + # Implement as an exercise + pass + + def peek(self) -> None | Node: + # Implement as an exercise + pass + +# Homework: +# - Implement the other methods on the stack +# - Implement linked list methods (see homework from 2026.01.28)