Back to Questions

Min Stack

126.5K viewsAsked at Meta
Medium

Question Explain

Design a stack that supports push, pop, top, and retrieving the minimum element in $O(1)$ time.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
Min Stack - Interview Question