Re:Ask HN: What are the best interview questions you've been...
by sand500 on Tuesday February 21, 2017 @10:05PM
(#13702638)
What if you added values that are greater then the minimum at the top of the minimum stack but less than the next value on the minimum stack?
Re:Ask HN: What are the best interview questions you've been...
by antoaravinth on Tuesday February 21, 2017 @10:46PM
(#13702832)
Your using two stacks now. This is the solution that I had told but your not satisfying the condition w.r.t to space , its O(n) not O(1).
Is that it?