Using BFS in flood fill

I am curious if BFS can be used to perform the flood fill.
I am not sure because DFS fits better when it comes to the implicit matrix traversal.

Hey @vivekimsit
Welcome to the Coding Blocks family buddy
Actually both the algos perform equally well to perform flood fill
No difference really
People prefer DFS since it doesnt use any DS and is easier to code compared to BFS

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.