Last active
March 20, 2021 09:20
-
-
Save Kimxons/dd343363e074915dab2399bc11df57b2 to your computer and use it in GitHub Desktop.
Revisions
-
Kimxons revised this gist
Mar 20, 2021 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,15 +3,14 @@ stack.append(7) print("Stack after appending: \n", stack) stack.pop() print("Stack after popping: \n", stack) #implementation two class Stack: def __init__(self): self.stack = [] def isEmpty(self): return len(self.stack) == 0 def push(self,p): self.stack.append(p) def pop(self): -
Kimxons revised this gist
Mar 20, 2021 . No changes.There are no files selected for viewing
-
Kimxons created this gist
Mar 20, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ #implementation one stack = [2,3,4] stack.append(7) print("Stack after appending: \n", stack) stack.pop() print("Stack after poping: \n", stack) #implementation two class Stack: def __init__(self): self.stack = [] def isEmpty(self): return len(self.stack) == 0 p=AutoPairsDelete() def push(self,p): self.stack.append(p) def pop(self): return self.stack.pop()