Skip to content

Commit 657ca27

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 37bc3e2 commit 657ca27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

data_structures/stacks/min_stack.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
- O(n) extra space for the min_stack
2929
"""
3030

31+
3132
class MinStack:
3233
def __init__(self):
3334
"""
@@ -86,5 +87,5 @@ def getMin(self) -> int:
8687
min_stack.push(-3)
8788
print("Current Min:", min_stack.getMin()) # Output: -3
8889
min_stack.pop()
89-
print("Top Element:", min_stack.top()) # Output: 0
90+
print("Top Element:", min_stack.top()) # Output: 0
9091
print("Current Min:", min_stack.getMin()) # Output: -2

0 commit comments

Comments
 (0)