Two Pointers #01
Medium 3Sum
Return every distinct triplet whose values sum to zero without duplicating answers.
Solved two pointerssortingduplicate handling
Sorted-array pairing, duplicate control, and shrinking a search space from both ends. The focus here is sorted scans and duplicate handling. Official LeetCode problems are linked on every page instead of being mirrored here.
Every page keeps the problem summary, recognition pattern, reasoning, pitfalls, and the exact C++ source used on the site.
Return every distinct triplet whose values sum to zero without duplicating answers.