Try starting from each station. Simulate the full journey.
stations, each simulation is . Total: .
Can you eliminate impossible starting points without full simulation?
The trap
Try starting from each station. Simulate the full journey.
stations, each simulation is . Total: .
Can you eliminate impossible starting points without full simulation?