DIY: Min Stack
Solve the interview question "Min Stack" yourself in this lesson.
We'll cover the following...
Problem statement
You have to implement the MinStack
class, 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.