Find the minimum moves through a grid when you may break one wall.
Unlock detailed company stats for this questionUpgrade
Given a grid where 0 represents a wall and 1 represents free space, find the minimum number of moves to reach from the top-left corner (0,0) to the bottom-right corner (R-1, C-1). You can move in 4 directions and are allowed to break at most one wall.
Community answers
No answers contributed by the community yet.


