mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-06 17:38:02 +00:00
@@ -11,8 +11,7 @@ class Stack(object):
|
||||
self.top = top
|
||||
|
||||
def push(self, data):
|
||||
node = Node(data, self.top)
|
||||
self.top = node
|
||||
self.top = Node(data, self.top)
|
||||
|
||||
def pop(self):
|
||||
if self.top is None:
|
||||
|
||||
Reference in New Issue
Block a user