Rat Chases its Cheese Question

https://ide.codingblocks.com/s/63028

TESTCASE #1: run-error (Time: 2.96 s)
TESTCASE #2: run-error (Time: 3.13 s)
TESTCASE #3: run-error (Time: 3.15 s)
TESTCASE #4: run-error (Time: 3.03 s)
TESTCASE #5: run-error (Time: 3.12 s)

monika there is an error of logic in the for loop when u are going left or up u have to check that the cordinates are to be greater than or equal to 0
try to solve all 4 case seperately
check this
https://ide.codingblocks.com/s/63046

1 Like

Thank you :star_struck: