Can you please explain the test case
Piyush and Magical Park
why we are subtracting 1 from (1, 0) position? we are not shifting right in this case
We move one step ahead to (1,1) which will cost 1 and then encounter a #. This is why we subtract 1.
Can you please explain the test case
why we are subtracting 1 from (1, 0) position? we are not shifting right in this case
We move one step ahead to (1,1) which will cost 1 and then encounter a #. This is why we subtract 1.