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 28 min to read

Play it as a journeyTutor comes with a plan

The Practice Ladders

Pattern Recognition
Pattern Recognition · Open board

The table at the bottom of this drawing sorts an unseen problem into a shape by the words in its ask. This lesson hands you three problems for each of those shapes, so the table becomes something you have used rather than something you have read.

Before you start. Interview Patterns (recognize the shape, apply the template) gave you the idea this page leans on: a pattern is a problem shape that keeps coming back with a solution you can reuse, and a tell is the handful of words in a problem statement that give the shape away (“sorted array” and “a pair” mean two pointers). Here you practise spotting tells, one pattern at a time, on real LeetCode problems.

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

  • 1946, Amsterdam: the chess master’s five-second glance
  • The ladder: three rungs, one pattern
  • Why twenty minutes, and why the hint is folded
  • The one line that makes a rung count
  • Arrays and hashing
  • Two pointers
  • Sliding window
  • Stack and monotonic stack
  • Binary search on an index
  • Binary search on the answer
  • Linked lists and fast/slow pointers
  • Trees
  • Tries
  • Heaps and top-k
  • Backtracking
  • Graphs: BFS, DFS and topological sort
  • Shortest paths
  • Union-find
  • Intervals
  • Greedy
  • 1-D dynamic programming
  • 2-D dynamic programming
  • Bits and math

Review DSA

Connects to