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.
yeap, it's best with O(n)
Your solution does the same you just take up another line to copy the contents of the initial string into a new one.
this kata makes me feel bad :(
Do the same solution. So, vote for this as THE Best Practices. ))
yes, because in your sum(ord(c) for c in s) you traverse list two times, first "ord(c) for c in s" and second sum().
the best solution is when you do it for the on traverse.
This comment is hidden because it contains spoiler information about the solution
I like the simplicity
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
LGTM!!
chad
Not intuitive for me but glad to know it exists.
This comment is hidden because it contains spoiler information about the solution
So that's how map works.
It's so obvoius what you did, I used a do while loop but this is much smoother :)
Loading more items...