i just can’t find why my code is not giving any output
kindly help me fixing it
Recursion rat in a maze
in my code 3 denotes the box which is blocked
@shubham.mehla2000 According to your given input, cell 0,0 is blocked and rat also starts from 0,0 .Also you have not made any case to handle when a rat comes to a cell which is blocked.
One case should be like this:
if(a[i][j]==3)
return false;
Please refer to the lecture video on rat in maze. It is clearly taught there what all conditions to check.
i have made changes as you said,
but there are still some bugs left,please help fix them too
yaa now i have seen that video too , but still tell me what’s wrong in my code???/
somebody please reply