Rat in a maze Question

Test Cases are not passed.
https://ide.codingblocks.com/s/61126

Hi Monika, the above code is not for Rat in a Maze question. Please give the correct ink so that we can help you at earliest.

Oh Sorry my mistake…

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

TESTCASE #1: run-error (Time: 0 s)
TESTCASE #2: run-error (Time: 0 s)
TESTCASE #3: correct (Time: 0 s)
TESTCASE #4: run-error (Time: 0 s)
TESTCASE #5: correct (Time: 0 s)
TESTCASE #6: correct (Time: 0 s)

Hi Monika, just change the size of the arrays from 100 to 1000 because the constraints of the question are:
1<=N,M<=1000 GRID(i,j)=‘X’ or ‘O’
I’ve done it here for your reference: https://ide.codingblocks.com/s/61502

1 Like

Thank you:kissing_heart: