Dear sir i am not able to start this problem please give me some hint so that i can start this problem

dear sir i am not able to start this problem please give me some hint so that i can start this problem

@uditkumar652
This problem is just about traversing all the possibilities 2-D matrix with the help of recursion.
But one modification here you can do is, you can modify any 5*5 subgrid such that change values from -1 to 0 and others remains same.
Here the width is fixed i.e. 5.
So, For eg if h=7, then you can modify only these subgrids,where h is from 1-5, 2-6, 3-7.

So before traversing the matrix using recursion just modify all the possibile subgrids one by one.

Here i am also attaching my code for reference, after you have understood the problem and not able to solve then only refer to this https://ide.codingblocks.com/s/246305

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.