3Sum

0
Remix

Return every unique triple of values in an integer array that adds up to zero, with no duplicate triples in the answer. Aim for O(n^2) time after sorting.

MetaNvidiaTechnical phone screenLast asked Apr 2026
No answer yet. Write the first one; the best answer gets endorsed.