2014年12月6日

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-12-06 21:02 luckygxf 阅读(177) 评论(0) 推荐(0) 编辑

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-06 19:55 luckygxf 阅读(164) 评论(0) 推荐(0) 编辑

导航