Flood Fill

Graphs ยท easy

Given an `image` grid, a start pixel `(sr, sc)`, and a `newColor`, implement `floodFill(image, sr, sc, newColor)` that fills the connected region of the start pixel's color with `newColor`. Return the image.

Learning resources

Loading...

Run your code to see results.