implement a stack with a method which can return the minimal value in the stack without remove this value.
Anonymous
implement a stack in which each element record the reference of the minimal value in the previous elements. (or just keep an array to record the reference. can further reduce the space by just recording the decreasing numbers)
Check out your Company Bowl for anonymous work chats.