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.
We can actually have a subarray that maximizes the sum and contains a negative element in it. For example : [3,-1,5] ( The whole array maximizes the sum and has a -1 in it )
[-1,3,-1,5,1] ( [3,-1,5,1] maximizes the sum and has a -1 in it )
This comment is hidden because it contains spoiler information about the solution