Min Stack at Intuit
Medium57.7% acceptance
This problem has 62.5% frequency at Intuit.
Problem Description
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Implement the `MinStack` class: * `MinStack()` initializes the stack object. * `void push(int val)` pushes the element `val` onto the stack. * `void pop()` removes the element on the top of the...
Read full problem and hintsTopics
Also asked at 35 companies
More Intuit Questions
Valid ParenthesesEasyLRU CacheMediumBasic Calculator IVHardDaily TemperaturesMediumLongest Valid ParenthesesHard
View all Intuit questions