The problem, in one line. Return every distinct set of three numbers from the list that adds up to zero, with no set repeated. LeetCode 15.
The tell. Find all combinations that hit a target, and repeats are not allowed. Fix one number and the rest is the sorted pair search you just wrote, with the target moved to minus that number.
Included with a plan
This solution is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.