Assign directions to edges so that the directed graph remains acyclic
Assign directions to edges so that the directed graph remains acyclic (alt) sits in a city map. Rohit’s job is bus routes. Write that first.
Keep Assign directions to edges so that the directed graph remains acyclic (alt) small. Rohit should finish bus routes in a few lines, not a 40-line dump.
Assign directions to edges so that the directed graph remains acyclic (alt) exists so Rohit can keep bus routes correct in a city map.
Use Assign directions to edges so that the directed graph remains acyclic (alt) when bus routes must stay clear. If a simpler DSA step works, use that instead.
If bus routes breaks under Assign directions to edges so that the directed graph remains acyclic (alt), check no visited set → infinite loop first.
After Assign directions to edges so that the directed graph remains acyclic (alt), Rohit should still remember no visited set → infinite loop.
One breath for Assign directions to edges so that the directed graph remains acyclic (alt), then bus routes, then no visited set → infinite loop. Sit down.
Board: bus routes. Dry-run Assign directions to edges so that the directed graph remains acyclic (alt). Name the trap: no visited set → infinite loop.