Ad
  • Default User Avatar

    One of the tests I am failing is ([10,-80,10,10,15,35,20]),6), but I don't see how 6 is the right answer. My code says index zero which seems to check out since 10 does equal -80 + 10 + 10 + 15 + 35 + 20. At index 6 it is saying that 20 = 10 - 80 + 10 + 10 + 15 + 35 but it doesm't, it equals 0. Am I doing something wrong or is this test just incorrect?

  • Default User Avatar

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