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.
min_repeating_character_difference(text)
in description)The "difference between the indices of these symbols" as applied to the input string "aa" is not 0, but 1. The index of the first "a" is 0, and the index of the second "a" is 1. The difference between 1 and 0 is 1, not 0.
hello again, random tests have been added
hello, thanks for the note, this is my first kata and I don’t know how to do a random check yet, I did the check intuitively by looking at the code example
This is most likely a sock puppet account of the kata author, since they submitted an exact same solution as the kata author's solution, which is pretty much impossible to happen.
There are no random tests.
Unrelated, but test code is written in a interesting way:
It's just
test.assert_equals(num, expected)
, both branches contain the same code.Good kata for its level, suitable for practicing topics such as string