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.
no, since expected and actual are swapped, so when you read something like:
(because I guess that's globaly what you are seeing), that actually means you should read/have:
Meaning your code isn't returning the expected value.
no global vars here, but rather an actual mistake in the translation. @joh_pot: please see above.
@ferrara: still, your solution isn't correct, so. ;)
It seems like you're attempting the python translation. I'm not the author of the python translation and I'm not versed in the language but it seems like you're using global variables to track state. The test suite calls your function hundreds of times and if you're not resetting your global vars, it will fail.
Your functions should return in CW, not print. Also, use Question, not Issue label for things like this, and use proper markdown
You're not returning anything.
Print the inputs, and see what cases you're failing.
Not sure what language you are using, but try to print out what the inputs are for debugging purposes.