2015年12月11日

摘要: 3SumGiven 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... 阅读全文
posted @ 2015-12-11 06:40 一心一念 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 4SumGiven an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target?Find all unique quadruplets in the array w... 阅读全文
posted @ 2015-12-11 06:38 一心一念 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 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 @ 2015-12-11 06:00 一心一念 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Divide Two IntegersDivide two integers without using multiplication, division and mod operator.If it is overflow, return 2147483647ExampleGiven divide... 阅读全文
posted @ 2015-12-11 04:20 一心一念 阅读(166) 评论(0) 推荐(0) 编辑

导航