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
several very different ways to do this one. Some choose to treat the version as a number, and then build from there, while others clearly focus on managing it as an iterable. nice little exercise
No frickin' way it worked. I'm getting Error that this returns Duration, not int64.
kinda not worth doing unless you wanna know about some obscure enumerable properties and how to make object properties nonenumerable. Meh not my kind of kata
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.
Thank you very much for doing the update yourself!
python new test framework is required. updated in this fork
See https://docs.codewars.com/training/troubleshooting
expected 1 to equal 38
p.s can't figure out what to fix
Loading more items...