Expand the Pond

One test case is failing and i cant find the error…please tell what is the mistake in the code?

@Anshit
Your code is failing this test case
Q : 3 4
0 1 0 1
0 0 0 1
1 1 0 1
A : 6

1 Like

Thank you…found the error and it passed all the test cases…

1 Like

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.