Problem 3609 · Medium

Minimum Moves to Reach Target in Grid

Each move adds the larger coordinate to one coordinate, so the walk is run backward from the target where each step has at most two predecessors.

Open the interactive visualisation