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 need to optimize your code, so that it could run less than
12000ms
.To be more explicit: Are you sure you want to
return
inside the loop?How many times does the loop execute?
It's a bit tricky to see without the indentation. (Try wrapping your code in tripple backticks to make it look better.)
I think that your code probably wouldn't pass
is_merge("ab", "b", "a")
, which should beTrue
. Maybe it will be clearer if you figure out why.Good luck and let me know if you want more specific help. :-)
The values you see are quantities of each value, not the value itself.
Each "troop" has a specified value (in the description), you don't just add it up. You forgot to mutiply the corresponding value for each race, giving their final good score and final evil score.
Read the Kata description fully if you have a problem with a Kata - "Even though my solution is correct".
Example:
Python 2.7 works perfectly fine - double check your code. Make sure you read the description correctly and give each troop a value,
Each "troop" has a specified value (in the description), you don't just add it up using binary.
Example:
It's hard to understand what you mean without context. If you are still having problems, just post code down below so I can see what's wrong.