Does not make sense


#1

What’s the point of putting this problem in Stack/Queue section if you want a constant space solution?


#2

And why doesn’t it, Please enlighten us.