STL: prev,upper_bound,binary_search
摘要:
还是来自大神的题解:https://github.com/soulmachine/leetcodeclass Solution {public: vector> threeSum(vector& num) { vector> result; if (num.size() { *a, *b, c }); } } return result; }};又碰到了不会的stl的用法,如下:prev:template BidirectionalIterator prev (BidirectionalIterat... 阅读全文
posted @ 2014-03-31 17:03 parapax 阅读(434) 评论(0) 推荐(0) 编辑