We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5bf8d13 + b805b16 commit 6f7037bCopy full SHA for 6f7037b
data_structures/stacks/min_ele_const_time.py
@@ -1,5 +1,5 @@
1
"""
2
-Given an set of numbers in a stack,
+Given an set of numbers in a stack,
3
find the minimum value from the stack at O(1)
4
5
Problem: https://leetcode.com/problems/min-stack/description/
@@ -30,7 +30,7 @@ def push(value: int) -> None:
30
31
def pop() -> None:
32
33
- Pop from the stack.
+ Pop from the stack.
34
If the popped value is the same as the min stack top,
35
pop from the min stack as well
36
@@ -49,7 +49,7 @@ def pop() -> None:
49
50
def get_min() -> int:
51
52
- Return the minimum element of the main stack by
+ Return the minimum element of the main stack by
53
returning the top of the minimum stack
54
55
Returns the minimum element (int)
0 commit comments