Pease tell in which test cases is my code going wrong
I am moving in all four directions(if valid).
As soon as any directions gives me a result I am stopping (since there exist a unique path)
Thank You
Test case 0 and test case 3 not being passed
I have seen your code for input:
5 7
OXOOOOX
OXOXOXX
OXOXOOX
OOOXOXX
XXOXOOO
Itβs giving output: NO PATH FOUND
Whereas expected output is:
1 0 1 1 1 0 0
1 0 1 0 1 0 0
1 0 1 0 1 0 0
1 1 1 0 1 0 0
0 0 0 0 1 1 1
1 Like
Thank You .I have corrected my code and its running fine
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.