DIY: Min Stack
Solve the interview question "Min Stack" in this lesson.
We'll cover the following...
We'll cover the following...
Problem statement
You have to implement the MinStack type, which has a Min() function. Whenever Min() is called, the minimum value of the stack is returned in O(1) time. The element is ...