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.
That is one of the differences between python 2 and 3. I used python 2 back then.
The Kata is asking for the possible combinations of one red and two blues, but ONLY cares about the position of the red.
A minor correction: first hit of chain lightning does 40 times the caster's spell power, while regular lightning does 25 times.
@lechevalier How do you write import statement and other statements on the same line? Semicolon does not work.
For the python version, I can only reduce it to 121, just one more character than required. Without using lambda
That is not a problem. Math has already been imported. Just use it.
This problem requires you to do it in one line. You cannot do so if you import anything.
For python, if two items have equal weight, this kata only accept 1 ton is heavier than 1000KG, while 1KG is lighter than 1000 grams, which does not make sense.
"Y" is sometimes a vowel (e.g. in "smelly") sometimes not (e.g. in "yes"). It is wrong to simply treat it as a vowel.