Minimum Steps to Reach Boundary in Grid
Filed under Sabre
The question
Given a 2D grid where 0 indicates a passable cell, 1 represents an obstacle, and 2 represents the starting location, find the minimum number of steps required to reach any cell located on the boundary of the grid.
No write-up yet. Related questions below have one.
Related Sabre questions
Collected from public candidate posts and coding forums. Updated Nov 2026.