Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 05 · DSA · Clinic: arrays, hashing and stacks · about 17 min to read

Play it as a journeyTutor comes with a plan

Clinic #18 - 3Sum

Pattern: Sort + Fix One + Converge · LC 15

3Sum
3Sum · Open board

Before you start. Tumhe list ko chhote se bade tak laga ke crawl karna aana chahiye, bas itna. Clinic #17: Container With Most Water ne “list ke dono siron se andar laana” wala idea diya tha. Wahi idea yahan wapas aayega, teesre number aur Clinic #05: Two Sum wale bacha hua sawaal ke saath.

Lesson 42 of 96 in DSA

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • Chhe dost, ek trip, aur paisa jo barabar nahi baith raha
  • Har teeno ki jodi try karna: chhoti list pe theek, badi list pe bekaar
  • Chaal: pehle line mein lagao, phir ek fix karke baaki do milao
  • Ek hi jawab do baar mat do
  • 0 · Problem, phir se
  • 1 · Ginti, poori
  • 2 · Invariant
  • 3 · Solution ladder aur code
  • 4 · Trace, haath se
  • 5 · Interview mein pehli baar, raasta
  • 6 · The Tell
  • 7 · Chalake dekho: brute, hashset, converge, aur teen bug jo sample pass karte hain
  • Retrieval

Terms it explains: LC 15, triplet, O(n³), two pointers, duplicate, dedup, unique, teen baar, jodi, O(n²), BEST, Clarify, Brute bolo, Reduce, INSIGHT, Code, Edge, barabar padosi, string, 4Sum, 3Sum Closest.

Review DSA