![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Medium
文章平均质量分 50
柯森锎
92年的小学生
展开
-
LeetCode 15. 3Sum (Medium)
题目描述Given 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 of zero.题目解析最直接的是三重循环; 由于要求去掉重复的答案,所以要先对nums排序;原创 2016-10-23 16:22:49 · 467 阅读 · 0 评论 -
LeetCode 18. 4Sum
题目描述Given 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 which gives the sum of target.Note: The solution se原创 2016-11-23 23:17:13 · 443 阅读 · 0 评论