A very common interview question. Implement ThreeSum then click Validate ā your code is compiled and tested live.
nums, return all unique triplets [a, b, c] such that a + b + c == 0.nums = [-1, 0, 1, 2, -1, -4] ā [[-1, -1, 2], [-1, 0, 1]].