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.
Yes! Exactly what I was about to point out :)
Unpacking with star/asterisk operator
That is genius!
Does anyone know the terminology for the star in the second line?
I checked 1st 3 first, after it's just simple enumerate through the array, so pure linear computing complexity
You are correct. See previous comments for some discussion on the issue.
This comment is hidden because it contains spoiler information about the solution
This algorithm checks every pair with the possibility of checking them twice wich makes it unefficient af
Sorry my bad. I thought we have to return the subarray with maximum sum.
If two subarrays have the same maximum then obviously they have to be equal, you can just return any of them.
(Atleast give one thought before raising issue.)
This comment is hidden because it contains spoiler information about the solution
Doesn't this code copy the list and result in more memory usage?