Problem 1466 · Medium

Reorder Routes to Make All Paths Lead to the City Zero

Search outward from city zero; every road walked in its drawn direction, away from zero, must be reversed once.

Open the interactive visualisation