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.
This comment is hidden because it contains spoiler information about the solution
Suggestion:
You must return the index of the word which realizes the highest score. Ties are decided by length. If two or more words have the highest score, then the index of the shortest word should be returned.
Your current solution appears to consider word length, but I have added some more edge cases that should prevent solutions which do not from passing.
CoffeeScript translation
Scala translation
Please review the test cases. My solution randomly passed, not considering the shortest word.
This comment is hidden because it contains spoiler information about the solution
Yeah, I have encountered the same problem using Python, as it seems 'CFHMVZNGH' and 'BQJUECZ' have the same score,and index 2 is before index 5.
Instructions state that "Words smaller than 3 letters should not change", but it should read smaller than 4, since three letters word are not going to change since the first and last letter cannot be changed.
I can't vote both Clever and Best practices at the same time.
My Python attempt fails with all decimal negative numbers, when I print the number parameter is 247 whereas it should be -247, it looks like parameter is converted to positive.