490. The Maze

There is a ball in a maze with empty spaces (0) and walls (1). The ball can roll through empty spaces until it hits a wall, then it stops. Given a start position and a destination, determine if the ball can stop at the destination.

Examples
Input: [[[0,0,1,0,0],[0,0,0,0,0],[0,0,0,1,0],[1,1,0,1,1],[0,0,0,0,0]],[0,4],[4,4]]
Output: true
Hints
Related Problems

490. The Maze

There is a ball in a maze with empty spaces (0) and walls (1). The ball can roll through empty spaces until it hits a wall, then it stops. Given a start position and a destination, determine if the ball can stop at the destination.