added push
This commit is contained in:
@@ -38,7 +38,7 @@ class Stack[T]:
|
|||||||
Returns:
|
Returns:
|
||||||
None
|
None
|
||||||
'''
|
'''
|
||||||
pass
|
self._data.insert_head(item)
|
||||||
|
|
||||||
def pop(self) -> T:
|
def pop(self) -> T:
|
||||||
''' removes the topmost element from the stack and returns that element
|
''' removes the topmost element from the stack and returns that element
|
||||||
|
|||||||
Reference in New Issue
Block a user