LeetCode习题全解
文章平均质量分 79
Code研究者
个人博客:www.yanyulin.info
展开
-
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原创 2015-10-11 11:56:47 · 335 阅读 · 0 评论 -
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原创 2015-10-11 12:34:04 · 304 阅读 · 0 评论