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.
i dont understand.
return ' '.join(sorted(s.split(), key = sorted(w)))
dont work!
bad complexity.
to much sorted
not readable
the only good point it's the size
Your example have taught me something new about the generator expressions.
You are not right, beacuse the words have different lengths...
The one letter word 'i' should score 9.
The two letter word 'be' should score 7.
If you don't take away the 96, you would get 105 for 'i' and 197 for 'be'.
Newbie stoopid question here: It's really necessary the "-96" part? I mean, they're asking for the word, not for the score. The high score word will be ever the same proportionaly as all characters has +96. I am right? Thanks.
This comment is hidden because it contains spoiler information about the solution
it looks nice, one liner.
I personnaly prefer manually iterating each letter to reduce complexity
Correct.
This comment is hidden because it contains spoiler information about the solution
Because it wants you to return the first greatest word.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Lol, everyone has unique ways of writing their code.
This comment is hidden because it contains spoiler information about the solution
Eh, agree to disagree. Wouldn't call it "hacky", it's just not very neat. I'd personally find it easier to read a multiline solution
Loading more items...