โ† Sabre questions

Minimum Distance to Escape Grid

Filed under Sabre

The question

Given an n by m grid with numbers 0 (empty space), 1 (plant), and 2 (starting point), calculate the minimum distance required to escape from 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.