leetcode-min stack
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get
原创
2015-01-20 11:51:04 ·
255 阅读 ·
0 评论