My code gives TLE for one test case . I cannot spot error in my code. Kindly resolve my issue.
Rat Chases its cheese
Hello, I have corrected your code. Your code needed a global variable found to track if you can reach M,N or not.
And also your code has some indexing issues as well. I have fixed them.
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.