Medium · Graphs

Topological sort (DFS post-order)

Order directed-graph vertices so every prerequisite appears first.

Topological sort (DFS post-order) memory room
The parts he mounts on the way up slide along the bench and turn about, the row rebuilding itself backwards. — Mount only after children finish

Retrieval check

With the notes hidden, what pattern should this room bring back?

Related free rooms