You are viewing a single comment's thread. Return to all comments →
What happens when your max element gets popped out? How do you give the next max in stack? Is there any other solution besides using 2 stacks?
Seems like cookies are disabled on this browser, please enable them to open this website
Maximum Element
You are viewing a single comment's thread. Return to all comments →
What happens when your max element gets popped out? How do you give the next max in stack? Is there any other solution besides using 2 stacks?