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.
Interesting, great solution 👏 instead of doing the reverse like I did. Time complexity is O(n) if I'm correct, array_sum doesn't have an effect I guess
That's the most straight-forward solution, but it kept timing out for me, so I had to optimize further. :/