2014年12月28日

[leetcode] Two Sum

摘要: Two SumGiven 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... 阅读全文

posted @ 2014-12-28 11:23 cha1992 阅读(160) 评论(0) 推荐(0) 编辑

[leetcode] 3Sum Closest

摘要: 3Sum ClosestGiven an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three int... 阅读全文

posted @ 2014-12-28 11:03 cha1992 阅读(200) 评论(0) 推荐(0) 编辑

导航