CodingReported in a candidate post, May 2019
Minimum moves to exit a grid
Filed under Grofers
The question
Given a grid with obstacles (1), empty spaces (0), and a starting point (2), find the minimum number of moves to reach any edge of the grid.
No write-up yet. Related questions below have one.
Related Grofers questions
Collected from public candidate posts and coding forums. Updated Nov 2026.