Find a lesson, question or project

Start typing to search published content and planned structures.

↑ ↓ moveEnter openEsc close
01

Learn the idea

Build the mental model and learn the reusable implementation pattern.

01 ARTICLES
02

Easy practice

Use the core idea in a direct problem with one main decision.

00 ARTICLES
Planned: no published lessons at this level yet. Browse available practice questions.
03

Medium practice

Combine the pattern with boundaries, state, or another technique.

00 ARTICLES
Planned: no published lessons at this level yet. Browse available practice questions.
04

Hard practice

Work through problems with less obvious invariants and tighter constraints.

00 ARTICLES
Planned: no published lessons at this level yet. Browse available practice questions.
INTERACTIVE TRACE

Graph traversal simulator

Follow BFS or DFS while the frontier and visited set make every decision visible.

Use A-B pairs separated by commas. Maximum 8 nodes and 12 edges.
Edges

CurrentFrontierVisited
Step 0 of 0

Keyboard: focus this simulator, then use ← → to step, Home End to jump, Space to play or pause, and R to reset.