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 08 · DSA · Worked problems, in English · about 17 min to read

Play it as a journeyTutor comes with a plan

Forty-five minutes, one unseen problem

Pattern Recognition
Pattern Recognition · Open board

The table that sorts an unseen problem into a shape by the words in its ask. In this lesson you use that table under a clock, once, from the first sentence to the last test.

Before you start. The Practice Ladders gave you three problems for each pattern, so that the words of a problem point to a shape you have already used. Capstone: Attack an Unseen Problem gave you the order of attack: restate, try small cases, pick a structure, check the cost. Here you run that order on a clock. Hashing is refreshed inline: a set below is a box that answers “is this number inside?” in one step, however full it is (see Hashing).

Lesson 76 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

  • 11 June 2025: the old questions took seconds
  • The 45-minute plan: like a board exam paper
  • Minutes 0 to 10: ask, then try small cases by hand
  • Minutes 10 to 15: brute force first, then the better idea
  • Minutes 15 to 30: write it, in small steps
  • Minutes 30 to 40: a dry run, and the edge cases
  • The new round: explain, then debug
  • Problem 1: LeetCode 128, Longest Consecutive Sequence
  • Problem 2: LeetCode 560, Subarray Sum Equals K
  • What the round looks like in 2026

Terms it explains: set, teaching plan, thinking aloud, brute force, start of a run, dry run, edge cases, Common mistakes.

Review DSA