one wrong output unable to find error
Rat_in_a_maze_problem
@swatiguptasg
As specified in the problem statement , you are required to print -1 in case there is no possible path. You have missed that case.
even after doing that I am still getting one wrong output
@swatiguptasg
Input:
5 4
OOOO
OXXX
OOXO
XOOO
XXOO
Expected Output :
1 0 0 0
1 0 0 0
1 1 0 0
0 1 1 1
0 0 0 1
Your Output :
1 1 1 1
1 0 0 0
1 1 0 0
0 1 1 1
0 0 0 1
Reason is the condition implemented at Line No. 19. That is a wrong condition and you do not need it.