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.
Damn, I take my hat off for this one! 🎩
Love the array indexing idea!
If bonus is False, its index value is 0
consider:
array = ['a', 'b']
bonus = True
array[bonus] == array[1] == 'b'
bonus = False
array[bonus] == array[0] == 'a'
I see this solution has 9 "Clever" votes, but only 1 (mine) "Best Practices" vote. Is that because Dart does not support tail optimized recursion yet?
How do you know whether it will pick 1 or 10?
Does the first element always correspond with False and the second with True?
Very nice idea with the array indexing!
Fixed.
This is preventing both the test cases and the submission tests from running, meaning this kata can not be completed. Since this has been an issue for a month, maybe converting the kata to regular old javascript might be an option?
The description is a bit hard to understand, with the use of terms such as "word characters" and "letter characters"