Please check why my code doesn’t pass test case 0 and 1 but passes 2 3 and 4
Test case 0 and 1 not passing
@Garvit012
In the question it is clearly mentioned that rat can move in all 4 directions. You just considered right and down direction. You have to add condition for up and left as well
oh sorry i must have misread the question due to a similar question in video