Leetcode 155. Min Stack
Design a stack supporting push, pop, top, and getMin operations all in O(1) time. The core challenge is to maintain and update the current minimum efficiently so getMin returns the smallest element present even after arbitrary pushes and pops.
Asked at:
Expedia
Snowflake
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Late June, 2026
Snowflake
Senior
How do you optimize this, more about threads and concurrency - different way to solve it.
Early June, 2026
Expedia
Mid-level
Early September, 2025
Snowflake
Senior
Hello Interview Premium
Your account is free and you can post anonymously if you choose.