DIY: Min Stack

Solve the interview question "Min Stack" in this lesson.

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 ...

Access this course and 1400+ top-rated courses and projects.