← ALL NOTES
Array

1926. Nearest Exit from Entrance in Maze

Maze of '.' (open) and '+' (wall) with a given entrance. An exit is any open cell on the border except the entrance itself. Find the minimum steps to the nearest exit, or −1. Unweighted shortest path…

Loading…