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:
← Prev
Next →
▶ Play
Reset
sorted nums
triplets found