• [deleted]Challenge Author
    + 2 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?