摘要: 题目:Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated ... 阅读全文
posted @ 2014-06-14 23:05 ThreeMonkey 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 题目:Given 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-06-14 22:50 ThreeMonkey 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. Yo... 阅读全文
posted @ 2014-06-14 22:40 ThreeMonkey 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 题目:Given 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:Ele... 阅读全文
posted @ 2014-06-14 22:28 ThreeMonkey 阅读(122) 评论(0) 推荐(0) 编辑