会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
红桃J
用心写好每行完美的代码,远比写一堆更有价值
博客园
::
首页
::
博问
::
闪存
::
新随笔
::
联系
::
订阅
::
管理
::
公告
2015年4月14日
leetcode 3Sum Closest
摘要: 代码: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 int threeSumClosest(vector &num, int target) { 8 sort(num.begin(),num.end()); ...
阅读全文
posted @ 2015-04-14 21:58 红桃J
阅读(161)
评论(0)
推荐(0)
leetcode 3Sum
摘要: 下面这个是笨方法。代码: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 vector > threeSum(vector &num) { 8 sort(num.begin(), num.end()); 9 ...
阅读全文
posted @ 2015-04-14 20:33 红桃J
阅读(137)
评论(0)
推荐(0)