AlgoMaster Logo

Min Stack

operations=[push -2, push 0, push -3, getMin, pop, top, getMin]
0 / 21
algomaster.io
Step:MinStack (brute force): store values only, scan for the min