Doubt in min stack problem

interview-questions
Tags: #<Tag:0x00007f244620bb58>

#1

what to write in the constructor as no variables are given what we need to initialize?


#2

declare the global variables and clear them out in the constructor.


#3

Yes, question is about stacks. But, you need queues for your Solution. Make them your global variable and keep clearing them in your constructor for each test case.