DIY: Min Stack
Solve the interview question "Min Stack" in this lesson.
Problem statement
You have to implement the MinStack
class, which has a min()
function. ...
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.