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.
Also fails with "rbX", "r", "rb".
I am not the one calling the shots to rate my own katas, but this one does not seem too complicated - is it?
I really like the task, my only suggestion is that it is too clever for rank 7.
This is looks very tidy, but it does not work. It fails something like "aabaab", "aba", "aba" which should be false. I don't think this problem can be solved with a greedy approach.
This comment is hidden because it contains spoiler information about the solution
I actually think it is more efficient, as you use an associative array instead of looping through an array - constant time vs. linear time.
And now I get where you got that typical elegance in writing code.
Thanks. I just did not think about using a string, I daubt it is more efficientthis way. I am thinking Java style still.
I was wondering if you did the associative array (or Object or whatever you want to call it)
DIGITS10
just for performances (a neat idea, actually, I didn't think about it) or there was some other reason not to use just a string with the whole upper case alphabet.[Also, I like the elegant, separated style of those helper functions]