Ad
  • Default User Avatar

    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 be 6. 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.

  • Custom User Avatar

    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

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution