boardrepresenting the grid of candy, different positive integers
board[i][j]represent different types of candies. A value of
board[i][j] = 0represents that the cell at position
(i, j)is empty. The given board represents the state of the game following the player's move. Now, you need to restore the board to astable stateby crushing candies according to the following rules:
boardwill be in the range [3, 50].
board[i]will be in the range [3, 50].
board[i][j]will initially start as an integer in the range [1, 2000].