Rat in a maze-backtracking


one test case not passing?

I have edited your code, try to submit it now,

could you tell error in my code? can you modify my code wothout using visited array?

Ok, I try to do that.

This question cannot be done without using visited array, as 1 test case wont be passed. I hope u understood with the code.