Approach hintTry it first, then revealHide
After sorting, fix each element in turn and search the suffix with two inward-moving indices for the negated value. Skipping repeated values at both levels keeps the triplets unique. O(n^2).
After sorting, fix each element in turn and search the suffix with two inward-moving indices for the negated value. Skipping repeated values at both levels keeps the triplets unique. O(n^2).