Search
⌘K

Leetcode 2812. Find the Safest Path in a Grid

Compute each cell's Manhattan distance to the nearest thief, then find a path from (0,0) to (n-1,n-1) that maximizes the minimum of those distances along the path — a max‑min (bottleneck) path problem on a grid.

Asked at:

Meta

Google

Google


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Late May, 2025

Meta

Senior

Late December, 2024

Google

Google

Mid-level

Find the Safest Path in a Grid

Comments

Your account is free and you can post anonymously if you choose.