Declaring variablses in constructor

I declared an vector in MinStack::MinStack() but it is not recognised by other functions like push…?

Click here to start solving coding interview questions