[LeetCode] Max Stack 最大栈

Design a max stack that supports push, pop, top, peekMax and popMax. push(x) -- Push element x onto stack. pop() -- Remove the element on top of the s
posted @ 2017-11-12 22:56  Grandyang  阅读(16189)  评论(0)    收藏  举报
Fork me on GitHub