Grid Path With a Limited Obstacle Budget

Asked at Nuro · Coding Questions · Difficulty: Hard

A robot moves through a grid in which some cells are obstacles. It must travel from the top-left cell to the bottom-right cell in as few steps as possible, but it carries a limited budget of obstacle removals: it may walk through at most `k` obstacle cells. Find the minimum number of steps.

Loading the problem…