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.
Yes, not easy to understand fully but maybe it is for that reason that the moderators gave a 4 kyu...
Be sure that there are no errors in the tests.
1:uuu
and2:sss
have same length,s
comes beforeu
but1
comes before2
.Maybe it is for that reason?
Per the standard described, dash is 3 time units long and pause between dots and dashes in a character is 1 time unit long. So 11111100111111 look like absolutely correct M, with rate 2. Hmm?
You're welcome! Feel free to ask. :)
Well, in fact, no reasonable algorithm for this kata should take seconds to complete. If this happens in your case, you're doing something really, really weird.
By the way, you can always print the input data of your function to see what the tests are and investigate why their analysis is taking so long.
Also, after you've managed to pass some of the tests, you may use temporary "shortcuts" in your solution, like "if the test input is this, return that" so that you can move to investigating what is the problem of your code with the next test.
That happens here on CodeWars from time to time. Try reloading the page first of all.
I had the same issue at first. You'll need to comb through the description to find what you missed. It has to do with the fine print around the effectiveness of type versus type.