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. Two-dimensional arrays with a MG (1: M, 1: N) simulated maze, the array elements of 0 indicates that the location can be passed, the array elements is 1 indicates that the location can not access. MG (1,1) and MG (M, N) respectively, the maze entrance and exit. If there is an available path through the output YES, otherwise output NO