We use Google Consent Mode to send cookieless analytics and ad measurement signals while storage is denied. If you accept, we also allow analytics and advertising storage, advertising-related data for measurement, and privacy-limited replay on selected public and learning overview pages to improve lessons. Ad personalization stays off, and you can withdraw consent from Cookie settings in the site footer. Cookie policy

Free problems / 3Sum

Medium · Sorting

3Sum

Find unique triples whose values sum to zero.

3Sum memory room
A pan scale hangs in the air between her stretched hands and swings itself level the instant the third stone joins the pair. — Sorted, two hands converge inward.

Retrieval check

With the notes hidden, what pattern should this room bring back?

Related free rooms

  • Interval scheduling (activity selection)
  • Merge intervals
  • Two sum II (sorted)