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.
i think you can try to write without using two def.
Do NOT have global variables, without resetting them. (
diff
in this case) Either reset it every function call, or put it inside the function (better way).This comment is hidden because it contains spoiler information about the solution
You can read through this FAQ and try to find something helpful. If you can't find anything, you can post your code for us to check (see here how to post it).
But did you check it with random tests?
Yes, I did.
hobovsky is just asking if you used the exact same input values in your local environment as those basic tests listed here on Code Wars.
Didn't really understand that.
Do you test it locally with exactly the same input it fails on CW?
Hi there, my algorithm in Python has passed one of the basic tests, but I'm having issues on the others tests. But when I'm executing it on my local environment it returns the expected results. Any ideia??