My code is showing no output in some test cases

rat in a maze problem

Hello @vinaykumar4530,
No Output is for the testcases like:
5 4
OXOO
XXOX
OOXO
XOOO
XXOO
Here, rat will stuck somewhere in between before reaching (n,m).
Your code is not dealing with it.

Hope, this would help.

1 Like

thank you now all test cases are passing