Skip to main content

All Questions

5votes
2answers
938views

Create a min stack

The task is taken from leetcode Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop() -- Removes ...
thadeuszlay's user avatar

close