diff --git a/Stack/Min Stack/optimal.py b/Stack/Min Stack/optimal.py new file mode 100644 index 0000000..1d87c14 --- /dev/null +++ b/Stack/Min Stack/optimal.py @@ -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() \ No newline at end of file