Ad
  • Custom User Avatar

    It looks like you're missing out several of the negative values in the array you've provided that adds to 225.

    The elements you're looking to find the maximum need to be contiguous.

  • Custom User Avatar

    @benjaminzwhite I would like to clarify if I understood the task correct. one of the tests consist the folow array [7,4,11,-11,39,36,10,-6,37,-10,-32,44,-26,-34,43,43] and the correct answer is 155, but my code can find another the highest value. Just look, please, [4,11,39,36,-6,37,44,-26,43,43] === 225. This is the maximum possible value. It is the reason why I ask, if I understood the task correct? Thank you!

  • Custom User Avatar

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