← Questions

Shortest path in a grid with blocked cells

0
UberCodingLast asked Jun 2026

Given a grid in which some cells are blocked, return the length of the shortest path from a start cell to a target cell, moving up, down, left or right, or report that no path exists.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding