why this is giving wrong output???
Rat chases cheese
@codingblockscpp you are coding incorrectly for the problem. In the problem, it is clearly mentioned that the rat can follow up, down , left and right but while coding you have taken only 2 directions. Plz change your code accordingly and then try to submit.