whats the error?
Piyush and the magical park
if first column of a row contains # then you decrease strength by 1
but it should move to next row without any loss of strength
Your Modified Code
you code is cumbersome so i am also my code you can also check that
My Code
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.