Sum
文章平均质量分 64
所难
这个作者很懒,什么都没留下…
展开
-
LeetCode-3Sum
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 zero. Note: Elements in a triplet (a,b,c原创 2014-08-18 14:19:40 · 366 阅读 · 0 评论 -
LeetCode-3Sum Closest
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. You may assume that each input would have exact原创 2014-08-18 14:02:30 · 273 阅读 · 0 评论 -
LeetCode-Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, whe原创 2014-08-19 18:54:55 · 399 阅读 · 0 评论