Min Stack

#155
Medium
Stack
O(1)
O(n)
Amazon
Microsoft
Bloomberg
Google
View on LeetCode

Problem Description

Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.