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.
You're welcome!
This comment is hidden because it contains spoiler information about the solution
If the first layer of recursion returns None, then the puzzle isn't being returned. So if the function takes in the original matrix, and in the loop
if puzzle[y][x] == 0:
condition is satisfied, then it will return nothing.11th line in your solution. You're returning
None
....?
you're supposed to return the solutions, on codewars, not print them to the console. And there is nothing forbidding you to put a
return
in your function... So I really don't get your message... x)errrr, there are actually no maths, in this version (there is in the last fork). This one is only mimmicing what's expected (rails and moves on them).