Minimum Time to Visit a Cell In a Grid
Run Dijkstra on arrival times; when a cell opens too late, bounce between neighbours until the arrival parity matches the cell.
Run Dijkstra on arrival times; when a cell opens too late, bounce between neighbours until the arrival parity matches the cell.