3Sum — sort, then fix one and two-point the rest
After sorting, fix the first number and look for two others that cancel it out, moving pointers inward from both ends.
Try:
sorted nums
triplets found