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.

  • Default User Avatar

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