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

Tree traversal simulator

Watch the current node, call stack or queue, and visited order change one step at a time.

Enter 1 to 7 integer values. They are placed into a complete tree from left to right.
Current nodeVisitedWaiting
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.