Checkpoint: relocation walk
Challenge on lesson: Checkpoint: relocation
CHALLENGE
Difficulty: intermediate+25 XP
The hardest Q4 variant: minimum moves from (row, col) to the cell holding target, moving up/left/right/down, or -1 if unreachable. A BFS or a repeated-scan distance fill both work — small grids. This fuses navigation, guards, and a sentinel.
Press Submit to check your solution.
Back to lesson: Checkpoint: relocation