1/38
Loading...
🤖Delivery Robot Ready!
Find the shortest path from S(start) to E(end) in the warehouse!
🔒
Loading...
Find the shortest path from S(start) to E(end) in the warehouse!
A delivery robot delivers packages in a warehouse. The warehouse is an N×M grid, with some cells containing shelves (obstacles). The robot can only move in 4 directions: up, down, left, right. Find the minimum number of moves from start (S) to end (E).
5 5 S . . # . . # . # . . # . . . . . # # . # . . . E
8
Move 8 cells via →→↓↓↓→→↓ or ↓↓↓↓→→→↓ path