Robot Collect Points problem


sample test case clear
but on submission it show wrong answer.

anyone one have look at my code figure out where i am wrong, please.

You have to change first 5*5 subgrid’s -1s to 0s.
But you are actually changing last subgrid’s -1s to 0s.
Just have a look at the showPower function, and the input you took (inside main function)

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.

1 Like


still not working, test case pass only.
even using ShowPower function for first 5*5 subgrid it is not working.

@S18LP0016
please see my code once again and figure out whatis going wrong.