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.
What the highest possible sum is of the list when looking at all consecutive numbers.
maxSequence [1,-2,3,0,4,-5]
=>
highest sum is from [3,0,4]
=>
highest sum is 7
=>
maxSequence [1,-2,3,0,4,-5] = 7
Same, i couldnt understand what the question was...
This comment is hidden because it contains spoiler information about the solution
It is not clear to me how many numbers are supposed to be summed. Just find the two numbers with the highest value and sum them or what?
I like your general approach and structure for readability but I'm struggling to mark this as best practice, as the variable names are no good at all, but the way you iterate over the digits is pretty clever.