← Questions

Three sum: unique value triples

0
GoogleMicrosoftCodingLast asked Sep 2026

Return every unique triple of values from an integer array that sums to zero (or to a given target), with no duplicate triples in the output. Sort, then fix one value and move two pointers, skipping duplicates.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding