Search
⌘K

Leetcode 1293. Shortest Path in a Grid with Obstacles Elimination

Find the minimum number of steps from the top-left to bottom-right in a 4-directional binary grid if you may remove up to k obstacles; treat each position together with remaining eliminations as the state and perform a shortest-path search (BFS) over that expanded state space, returning the step count or -1 if unreachable.

Asked at:

Meta

Oracle

Databricks


Question Timeline

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

Mid February, 2026

Meta

Senior

Got this question. I missed tracking visited.

Late November, 2025

Databricks

Senior

Late April, 2025

Oracle

Staff

Comments

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