Graph Representation
If you can teach Graph Representation using bus routes, you know it. If you only know the heading, you don’t.
Keep Graph Representation small. Sara should finish bus routes in a few lines, not a 40-line dump.
Skip Graph Representation and no visited set → infinite loop shows up in a city map.
Use Graph Representation when bus routes must stay clear. If a simpler DSA step works, use that instead.
If bus routes breaks under Graph Representation, check no visited set → infinite loop first.
After Graph Representation, Sara should still remember no visited set → infinite loop.
One breath for Graph Representation, then bus routes, then no visited set → infinite loop. Sit down.
For Graph Representation: definition + a city map + one failure.