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.
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.