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.
I realize its the sum of the array. I thought they wanted us to return both the sum of the array
6
and the array its self[4, -1, 2, 1]
.my original program returned this.
6: [4, -1, 2, 1]
when the actual return is supposed to be6
. I thought that because in the example it states.max_sequence([-2, 1, -3, 4, -1, 2, 1, -5, 4]) # should be 6: [4, -1, 2, 1]
So I thought the correct answer was everything after
should be
it would be easier to understand if it was.max_sequence([-2, 1, -3, 4, -1, 2, 1, -5, 4])# should be 6
. That is my opinion at least.6 over here is just a sum of the array (-1 + 1 = 0 and 2+4 = 6 ) and not points us to any direction to solve
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution