摘要: 标题:3Sum Closest通过率:27.0%难度:中等Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum... 阅读全文
posted @ 2015-04-08 19:28 pku_smile 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 标题:4Sum通过率:21.4%难度:中等Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array wh... 阅读全文
posted @ 2015-04-08 19:25 pku_smile 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 标题:3Sum通过率: 16.9%难度:中等Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the s... 阅读全文
posted @ 2015-04-08 19:16 pku_smile 阅读(145) 评论(0) 推荐(0) 编辑