← Back to Games
🛡️ Guardian of the Minimum
Min Stack — O(1) getMin() with Auxiliary Stack
📚 Main Stack
🏆 Min Stack
➕ Push
Push
🎲 Push Random
➖ Pop / Query
Pop
Top
🏆 Get Min (O(1))
⚡ Current Minimum
getMin()
—
⏱️ Time Complexity
push():
O(1)
pop():
O(1)
top():
O(1)
getMin():
O(1)
📜 Operations Log