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.
Don't use sum and range for this Kata it will run out of memory with n = 27532435554730
OverflowError: range() result has too many items
This would likely lead to overweighting kata, actually. Users would vote it higher than it really is to get more points. It was changed to a 6 recently.
Agreed. On the other hand some 7kyu-s Katas feel more difficult than this one.
It would be better if we could give a kyu level after completion.
That way Katas would have a better leveling.
This comment is hidden because it contains spoiler information about the solution
Don't mutate the input
Where can I submit a test bug-report?
I'm passing the Sample tests on Python 2.6.7 but when I try to attempt I get this:
9 + 3 = 12 as far as I know.
I've tried 30x times already all random tests provide "should equal 0" messages.
My point is you do NOT need to know anything about the particular Morse codes, and you do not need any websearch skills to solve this (and the following) kata.
Using not very standart code table is a feature to move the focus of the solution from Morse Code to Python (Java, C# etc.) code.
My bad, you are right. It is on the Wikipedia page, but is not searchable so we can't find it easily.
We should test our coding skills on this site and not our websearch skills.
It gives no additional value to the Kata if we have 40 key, value pairs or 180.
These: {"!" : "-.-.--", "." : ".-.-.-",} key, value pairs are throwing errors in all Morse code translators too.
If you would use International(ITU) characters only it would be an excellent Kata.
First of all, you're wrong, please check Wikipedia.
Second, that should not bother you as the Morse Code table is preloaded in this kata and you should just use it without taking care of what's inside.
KeyError: '-.-.--'
There is no such key in the whole International, American or Gerke Morse Code table.