摘要: 题目描述 定义栈的数据结构,请在该类型中实现一个能够得到栈最小元素的min函数。 class Solution { public: void push(int value) { st.push(value); } void pop() { st.pop(); } int top() { return 阅读全文
posted @ 2018-05-02 21:19 gaoren 阅读(129) 评论(0) 推荐(0)