Test cases are not passing (rat in maze)
sorry of late reply
i missed your doubt
-
change size of array
it should be 10^3 X 10^3
as mention in the constraints
-
also you don’t have to print all answers
only print one ans
for that you have to add one condition
if(rightsuccess)
return true;
Modified Code
it is passing all testcase now
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.