← PATTERN ATLAS
PATTERN 11 · 7 PROBLEMS

Graphs: traversal & ordering

Model relationships explicitly, mark visited state, and choose traversal order to match the question.

Start the first lesson ↗
MASTER KEYNodes are facts; edges are allowed moves.
0OF 7
RECALLED
RECOGNITION SIGNAL

Each unseen land cell starts exactly one component traversal.

01
Not started

Number of Islands

Each unseen land cell starts exactly one component traversal.

↗
02
Not started

Clone Graph

Cycles require remembering a clone before exploring neighbors.

↗
03
Not started

Pacific Atlantic Water Flow

Reverse the flow: from each ocean, climb to equal or higher neighbors.

↗
04
Not started

Course Schedule

A directed cycle is exactly the obstruction to a valid order.

↗
05
Not started

Number of Connected Components in an Undirected Graph

Every successful union merges two components.

↗
06
Not started

Graph Valid Tree

A tree with n nodes has n − 1 edges and one component.

↗
07
Not started

Alien Dictionary

Only the first differing character between adjacent words creates an ordering edge.

↗