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.
I would love to solve 1000 more 6kyus like this one.
8 kyu... realy
Your code is wrong, not a kata issue.
3 differences there, your function returns 6.
I resolved it and the test doesnt work properly. Actually I use all the examples that shows the Test case below and all succeded...
Looks cool
Here's the new one. The random input generation is not as sofisticated as in the new random tests in Python but I guess it's sufficient.
More appropriate for 8 kyu
I rejected this version, but feel free to fork, fix, and republish.
See comments on the translation for hints.
I added a note on ASCII inputs, now i'd have to check what languages do not conform.
Yes.
Ah OK, I get it now. As usual, I misread/misunderstood the initial issue.
The inputs were ASCII from the beginning, I did not change this part when reviewing the languages. Do you think such note would be sufficient?
Comparing bytes is incorrect if there can be multibyte characters, but iterating bytes (or even code units instead of code points) is more efficient or just easier in languages where strings aren't just arrays of codepoints (which they are not in C-based, JS-based, Java-based and many other languages).
Groovy translation kumited. Please review and approve. Thanks, suic
Clojure translation has no random tests.
I believe so, if you iterate strings each "char" at a time. Many unicode characters require more than one "char" instance.
Loading more items...