AI Features

Flood Fill

Try to solve the Flood Fill problem.

Statement

You are given a 2D grid of size m x n, where grid[i][j] represents the pixel value at position (i, j).

Additionally, you are given three integers:

  • sr: The row index of the starting pixel ...

Ask