flood_fil

if you have never had to deal with this kind of problem, I advise you to watch this video which explains the principle VERY WELL!

Just after that, you'll be able to code flood fill in 5 minutes ;)

And here is the subject:

Subject

Commented solution

flood_fill

You can then use the example of the subject to see if you did everything right :-)

Last updated

Was this helpful?