How would you implement a stack to achieve constant time for "push", "pop" and "find mininum" operations?
Anonymous
The catch is to use another stack to remember the minimum. The other operations already take constant time.
Check out your Company Bowl for anonymous work chats.