Skip to content

Commit

Permalink
min stack
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiragKr04 committed Jun 23, 2022
1 parent 288850c commit ea690ac
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Stack/Min Stack/optimal.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class MinStack:

def __init__(self):


def push(self, val: int) -> None:


def pop(self) -> None:


def top(self) -> int:


def getMin(self) -> int:



# Your MinStack object will be instantiated and called as such:
# obj = MinStack()
# obj.push(val)
# obj.pop()
# param_3 = obj.top()
# param_4 = obj.getMin()

0 comments on commit ea690ac

Please sign in to comment.