Walk from the top-left to the bottom-right of a grid while staying as far as possible from blocked cells; among the safest routes, take the shortest.
Walk from the top-left to the bottom-right of a grid while staying as far as possible from blocked cells; among the safest routes, take the shortest.
Opens with the full question.