leetcode 15 3Sum
2018-02-11
阅读 2 分钟
2.1kGiven 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.给定一个整数数组s,我们要找出s中是否有三个不同元素的加和等于0,如果有,输出所有满足条件的序列。要求序列不重复。 For example, 输入数组S = [-1, ...