[LeetCode] 3Sum Closest, Solution

摘要: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers.... 阅读全文
posted @ 2013-01-26 06:05 小刀初试 阅读(145) 评论(0) 推荐(0) 编辑

[LeetCode] 3 Sum, Solution

摘要: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of ... 阅读全文
posted @ 2013-01-26 05:48 小刀初试 阅读(163) 评论(0) 推荐(0) 编辑
< 2025年4月 >
30 31 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 1 2 3
4 5 6 7 8 9 10

统计

点击右上角即可分享
微信分享提示