Franky this is the first time I am working with recursive functions and attempting to do a flood fill algorithm.
The problem I think is the recursive function calls, It ends up as an infinite loop. I'm guessing it is a limit of 250 stacks, as I have read at various places.
I have tried with smaller fills and they work, but as I make them bigger, they end up with the infinite loop warning.
Is there a way to increase the stack size? Or how would I go about doing a flood fill without reaching this limit?
The problem I think is the recursive function calls, It ends up as an infinite loop. I'm guessing it is a limit of 250 stacks, as I have read at various places.
I have tried with smaller fills and they work, but as I make them bigger, they end up with the infinite loop warning.
Is there a way to increase the stack size? Or how would I go about doing a flood fill without reaching this limit?
Comment