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.
This comment is hidden because it contains spoiler information about the solution
you don't need this -seen, do you?
Won't it make it slightly slower?
this is so complicated... more votes would be deserved for something simpler that fullfills all requirements.
Would you explain this? This is better than my solution. I wasn't able to find the formula behind it...
How did it feel when you saw the other answers?
I relate to what you might have felt! Everyone did this in life!
This comment is hidden because it contains spoiler information about the solution
This should be the solution marked as best!
This should be the solution marked as best!
Wow, thanks for that. I had missed the replies! There is a better solution then!
This is quite frustrating - the solution times out with python. After hours on the problem, we don't get the honour :(
Wow! I can't imagine anything more simple!!
I failed to see the obvious advantage in the problem description - the sum will never be less than 0.
If this was not part of problem description, the problem would be harder to solve, as max sum could be negative.
I wouldn't see a way of solving it with a non quadratic solution then