733 Flood Fill
Techniques
Graph
Simple DFS
Approach:
If the current pixel already has the newColor, return the image as it is.
Call the utility dfs function (defined below) for our starting point. ( image[sr][sc] )
Pixels grid will get modified accordingly, and ...
raahulsaxena.hashnode.dev2 min read