Find All Unique Triplets Summing to Zero in Array

Asked at Visa · Coding Questions · Difficulty: Medium

Given an array `nums` of `n` integers, are there elements `a, b, c` in `nums` such that `a + b + c = 0`? Find **all unique triplets** in the array which give the sum of zero.

Loading the problem…