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.
And now I know about the sorted() function...I love it.
IMHO best prctice than sumsum
What is being repeated that shouldn't be in this solution?
Your post was visible in the homepage, that's why you should use spoiler flag here.
Why is this a spoiler? I'm not providing a different solution, I'm explaining why this solution is faster than others.
PS I get it. It compares 2 solutions and one of them is not here. Sorry about that.
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
Missing solution and test framework imports
There's no need for the condition because it returns 0 by default
Repeating code doesnt automatically ruin a solution. In this case it is actually very readable and writing this in another way would make it unclear for no reason
Its a good answer
I thought it returns False if the array is empty
I jsut wanted to sumsumsum
It doesn't modify the arrays, but creates a new array.
it defaults to 0 when you would think it's 'null'
Loading more items...