Flood fill ques

int second test case its giving run time error…

pllz help

https://online.codingblocks.com/player/38885/content/20435/6257

question…

Your code is giving the wrong answer for test case 2.


Please see your approach once again.
Check for this example -:
18
88 94 28 7 93 44 61 61 69 27 47 68 90 94 81 10 71 2

Your code is giving 16 as output but the answer is 15.
Maybe you did not read the question correctly.
Read again and see this line “At the start of the game you pick any starting square (this is not counted as a turn).”.

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.