Vishal1003 / Algorithms

🎓 Important Algorithms and their implementations
MIT License
33 stars 99 forks source link

Create Flood Fill Algorithm (C++).cpp #158

Open maitreyi0505 opened 3 years ago

maitreyi0505 commented 3 years ago

Input for the code: 4 5 1 3 1 2 2 1 2 2 2 3 2 1 1 2 1 3 1 2 2 2 3 2 8

Output: Updated screen after call to floodFill: 1 3 1 8 8 1 8 8 8 3 2 1 1 8 1 3 1 8 8 8