Flood Fill
Starting at pixel (sr, sc), replace the colour of the connected region (4-directional, same original colour) with a new colour and print the image.
Constraints
1 <= R, C <= 50
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.