摘要: 3 suma+b+c=0class Solution {public: vector > threeSum(vector &num) { vector >v; vectorv1; sort(num.begin(),num.end()); for(int i=0;i0)break; for(int a=i+1,b=num.size()-1;a0){b--;} } } return v; }};3 sum clos... 阅读全文
posted @ 2013-04-13 14:37 代码改变未来 阅读(215) 评论(0) 推荐(0) 编辑