implement a stack that can return on o(1) the max value of the stack
Anonymous
user another stack push the new element to the stack push the max between the two top of the stacks to the other stacks.
Check out your Company Bowl for anonymous work chats.