Min Stack (LeetCode) tweak it to avoid Memory Limit Exceeded

摘要: 1 class MinStack { 2 public: 3 void push(int x) { 4 if(values.empty()) 5 { 6 values.push_back(x); 7 min_i... 阅读全文
posted @ 2014-12-16 15:37 metapher 阅读(254) 评论(0) 推荐(0)