solulubeta
Sign in
NeetCode 150 / Two Pointers
02.03 · Problem

3Sum

Medium Sort + two pointers, skip duplicates 1 video LC 15 Pro

This problem is part of solulu Pro

Given an integer array nums, return every distinct triplet [a, b, c] of values taken from three different positions such that a + b + c = 0. The result must not contain the same triplet twice. Triplets and the values…

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 12 of 150 · updated 2026-10-12