>_
three_sum.cs
C# 10.0
Not run yet

+ 8 hidden

Input
nums = [3, -1, -2, 5, -3, 0]
Expected
[[-3, -2, 5], [-3, 0, 3], [-2, -1, 3]]

-3 + -2 + 5, -3 + 0 + 3 and -2 + -1 + 3 are the only sums that reach 0; each triplet is written in ascending order.