← Back to Games

🛡️ Guardian of the Minimum

Min Stack — O(1) getMin() with Auxiliary Stack

📚 Main Stack
🏆 Min Stack
➕ Push
➖ Pop / Query
⚡ Current Minimum
getMin()
⏱️ Time Complexity
push(): O(1)
pop(): O(1)
top(): O(1)
getMin(): O(1)
📜 Operations Log