how to print just the rightmost soln as im only able to code all the solutions.
Rat in a maze backtracking
Check now ->
it shows wrong for first test case
int out[1000][1000];
for(int i=0;i<m;i++){
for(int j=0;j<n;j++){
cin>>maze[i][j];
out[i][j]=0;//updated(it was containing garbage value)
}
}
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.