K个数之和
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 15. 3Sum(三数之和)
原题网址:https://leetcode.com/problems/3sum/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 ze原创 2016-05-19 06:03:50 · 833 阅读 · 0 评论 -
LeetCode 18. 4Sum(四数之和)
原题网址:https://leetcode.com/problems/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原创 2016-05-19 06:31:51 · 721 阅读 · 0 评论