AlgoMaster Logo

Min Stack

operations=[push -2, push 0, push -3, getMin, pop, top, getMin]
0 / 16
push -2push 0push -3getMinpoptopgetMinoperationsvalminstack [val, min]
algomaster.io
Step:Start: MinStack — each entry stores [value, currentMin]