Getting testcasse wrong rat chasing cheese

getting testcasse wrong rat chasing cheese

@guptashubham210a check for this
4 4
OOOO
OOOO
OOOO
OOOX

where should I make change?

why my code is giving wrong for this?

@guptashubham210a just check for that separately but your code also giving wrong for
4 5
OOXXX
OXOOO
OXOXO
OOOXO
do you want me to provide you with correct solution?

yes pls Provide so I can check

but whats wrong in my code?

@guptashubham210a sorry for the delay totally forgot it
wait sending

@guptashubham210a

in this case its giving both ans but we want only one na?

sorry I was talking about
in this case?

@guptashubham210a yes only 1 is needed

so there is modification neeed na?

I am having one doubt pls clear it

@guptashubham210a what doubt


this part is not needed na? for one path

image
this should be correct

@guptashubham210a for one direction check this

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.