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.
OP solved it, closing. But with a terrible time complexity algorithm
It actually works because the ascii offset should be 96 but by adjusting it to 95 you are adding one additional point for each letter; thus tracking the length implicitly via ascii value.
You're right, the length is ignored. I don't remember how I missed it, I solved this task a year ago. Apparently, the solution worked back then :)
You spotted correctly that he's ignoring length in his scoring. Which is incorrect, and the random tests mostly catch this. Which makes it amazing this is voted "Best Practice".
Not that I should be throwing stones here .. :P I've made similar mistakes aplenty.
Which exactly part is not clear?
Let's say we have a name "John". Then
I am sorry for you but the tests are correct. They are the same in all languages, 972 guys passed the kata (129 in JS).
The tests and samples conform with the rules.