uploaded instruction pdf

This commit is contained in:
2026-03-29 22:54:53 -04:00
parent f566e71a48
commit 73c6a283c6
3 changed files with 1 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ class Stack[T]:
'''
if self.is_empty():
raise EmptyError("Stack is empty")
return self._data.get_head()
return self._data.head.get_data()
def is_empty(self) -> bool:
''' indicates whether the stack is empty