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.
thx! :) (Note: do not forget the spoiler flag, when you throw bits of code in the comments: they are visible from anyone in their dashboard)
What list lengths were tested? If it's function calls that are expensive, it's still a constant factor, it may be able to significantly affect times for only really small lists.
This comment is hidden because it contains spoiler information about the solution
Proof? I don't believe adding numbers can be slower than adding the same numbers and allocating memory for a whole list and copying everything.
It's 8 Kyu. I don't think about performance in such Katas.
Fixed. Thanks for spotting it :)