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.
Ah got it, DOH!
Thanks!
In my local code, I pass 'Oay emporatay oay oresmay !ay' into my function, and it returns 'Oay emporatay oay oresmay !' So is this the wrong way round?
I added it later, to see if it was actually failing, it was an error from the ATTEMPT.
This comment is hidden because it contains spoiler information about the solution
Test case
What am I missing here?
Ah, I see, the description is quite confusing to be honest. I understood the output to be the floor moved to, but it is actually the difference and direction traversed between levels.
Why does one test say "0 should be -1" ?? I thought the levels begin on level 0?
Now thats learning something new!
Random test cases include lowercase and 'NoneType' characters
"The problem is not to understand the description but to find how to solve the kata."
This is a rather abstruse and confounding line. Surely, if one has issues with the description, the far more difficult it is to solve the Kata?
I am also a native English speaker, and the description is very confusing indeed. The Math description with water weight to me, is unclear. For example, in your description you suggest a water loss of 1 percent accounts for 50 percent loss in overall weight. How does this follow if the water is 99% of the overall weight?
Despite this issue, which of course, could be my own personal confusion with it, the Math involved should be using Floating Point precision not integers. It will be quite a hack to get this working on Integers.
I have been struggling with that one too!
Dang! Didn't know about that all function! Super Sweet!