Introduction - If you have any usage issues, please Google them yourself
From the entrance to the exit of a maze to find an available path through. With a two-dimensional array MG (1: M, 1: N) simulated maze, an array element of 0 indicates that the location can be passed as an array element that can not access the location. MG (1,1) and MG (M, N) respectively, the maze entrance and exit.