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 asks you to reverse the fewest one-way roads in a tree so every city can reach city zero.

Statement

There are n cities labeled from ...