Skip to content
RED SAGSkills
hard20 pts · first answer countsgraphsbfsstate-space

Shortest path with k walls you can break

You may break through at most k walls on a grid. Why does a visited set keyed only by (row, col) give wrong answers?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions