LeetCode: https://leetcode.com/problems/min-stack/
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
top
-2
0
mins=[-2]
op=push(-2)
Step 1 / 6
Step 1:
Push -2. stack=[-2]. mins=[-2].
Pointers: top=0
Focus: select @ [0]
op="push(-2)"