You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: array/sum.md
+89
Original file line number
Diff line number
Diff line change
@@ -70,3 +70,92 @@ public:
70
70
```
71
71
以上解法的要注意的是记得要检查这两个坐标是不是相同的,因为我们并不需要同样的数字。
72
72
73
+
74
+
#3Sum
75
+
> 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.
76
+
77
+
> Note:
78
+
Elements in a triplet (a,b,c) must be in non-descending order. (ie, a ≤ b ≤ c)
79
+
The solution set must not contain duplicate triplets.
0 commit comments