Unable to pass Test_case 3
@gauravrai628
You skipped the backtracking step.
Before returning false in solveRatInMaze( ) at the end , do a backtracking step
vis[i][j] = false;
Mark the current cell as unvisited as we did not find the correct path from here.
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.