Back to QuestionsPractice with This Question
Min Stack
126.5K views•Asked 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.