Concept Flow - Min Stack Design
Push value
Compare with current min
If smaller or equal, push to min stack
Push to main stack
Pop value
Check if popped value == min stack top
If yes, pop min stack
GetMin
Return top of min stack
This flow shows how values are pushed and popped from the main stack and min stack to keep track of the minimum value efficiently.
