Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
anyone explain that first solution, or refer math theory about that, so confused.
DFS won't give you a fastest route to the specified field
Try to print the result here in CodeWars editor (before returning it, or whatever the case), and you'll see that it doesn't return True :P
No, that shouldn't be possible. You'd see the error here too.
Seems like python regular tests expect True / False, while random tests expect 1 / 0 (yep, weird). Due to loose types, they evaluate to same thing, so it just means you returned False, when True was expected.
All tests are correct, and there're no issues with CW's Python environment. Are you sure you're reading the logs and tests' output in the correct order?