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 agree, having more examples would help with decoding while not taking away from the problem.
8D
True -- feel free to fork it :-)
This comment is hidden because it contains spoiler information about the solution
:D
Agreed, I initially implemented a recursive function (in C++) and had to back away from it because of the strange edge case.
Added "Can someone explain" to the end ~half the time. Also added case sensitivity ('can someone explain' appears randomly), and a test for the suggestion above ("Can someone explainable", e.g. is invalid).
Now this is programming.
I agree.
The function is powered by Fermat's little theorem, making it potentially faster (though less accurate) than a sieve. Adding tests on 5 and 7 will make this work up to 10^4
This comment is hidden because it contains spoiler information about the solution
Added.
I feel you should add "PUZZLE" tag to this Kata because there is guesswork invoved due to the ambiguous example tests.
This may be me solving this later in the evening, but the example test cases imply that it is the last letter of the word that is being repeated twice and then has "k" added.
You may want to consider adding a test case which makes the actual rule more obvious. :)
I laughed very hard about this ine!
Loading more items...