LeetCode 490: The Maze
Problem Restatement We are given a maze represented by a 2D grid. Each cell has one of two values: Value Meaning 0 Empty space 1 Wall A ball starts at start . The ball can roll in four directions: Direction Up Down Left Right But the ball does not move one cell and stop. Once it starts rolling in a direction, it keeps rolling until it hits a wall. It...