my case 0 and 1 are showing wrong answer
why ??
Rat Chases Its Cheese Problem
@yyashu123 as per problem statement rat can go in all the four direction but you are only checking right and down directions, search path in all direction.
i have made changes yet i am getting rum time error
there was a simple mistake in your code i have corrected it and commented that parts, look here https://ide.codingblocks.com/s/239165
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.