上一页 1 ··· 13 14 15 16 17

[leetcode]4Sum

摘要: 4SumGiven an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum... 阅读全文
posted @ 2014-07-13 22:49 喵星人与汪星人 阅读(541) 评论(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-07-13 21:19 喵星人与汪星人 阅读(148) 评论(0) 推荐(0) 编辑

[leetcode]3Sum

摘要: 3SumGiven an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:El... 阅读全文
posted @ 2014-07-13 20:51 喵星人与汪星人 阅读(576) 评论(0) 推荐(0) 编辑

[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-07-13 20:16 喵星人与汪星人 阅读(350) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17