2014年12月29日

[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-12-29 19:31 cha1992 阅读(145) 评论(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-12-29 12:42 cha1992 阅读(167) 评论(0) 推荐(0) 编辑

导航