Search⌘ K
AI Features

Reorder Routes to Make All Paths Lead to the City Zero

Reorder Routes to Make All Paths Lead to the City Zero gives a one-way tree of cities and asks for the minimum road reversals needed so every city can reach city zero.

Statement

There are n cities labeled from ...