Bloomberg logoBloomberg
Coding·60 minMembers

Shortest Path in Grid with K Wall Breaks

Members only

Find the shortest path from the top-left to the bottom-right of a binary grid, allowed to eliminate at most `k` obstacle cells along the way. Standard BFS plus a `remaining-breaks` state dimension.

SWE
bfs
grid
state-machine
hard
Frequency
Low
Last asked
2026-08-07
Stage
onsite-coding · phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...