Array
1730. Shortest Path to Get Food
A grid with '*' (you), '#' (food), 'O' (open), 'X' (obstacle); moving up/down/left/right onto open cells, find the minimum steps to any food, or −1. Unit-weight moves in an unweighted maze → plain…
Loading…
A grid with '*' (you), '#' (food), 'O' (open), 'X' (obstacle); moving up/down/left/right onto open cells, find the minimum steps to any food, or −1. Unit-weight moves in an unweighted maze → plain…
Loading…