Find the fewest steps from the top-left to the bottom-right of a grid of open cells and walls when you may break through at most k walls. Asked as a talk-through: the optimal algorithm and why it works.
Find the fewest steps from the top-left to the bottom-right of a grid of open cells and walls when you may break through at most k walls. Asked as a talk-through: the optimal algorithm and why it works.
This question is free
Log in to read the full question, run your code and see the solution.
Be the first to discuss this question
Approaches, follow-up questions and how the interview went. Log in to read and join the discussion.