Flood Fill

Preview

Given a m x n integer grid image and integers sr, sc, and newColor, write a function to perform a flood fill on the image starting from the pixel image[sr][sc].

Sign in to read the full chapter.

Checking access…