Ad
  • Custom User Avatar

    Fixed.

  • Custom User Avatar

    Yep, I think that any integer returned passes all the tests O.o

  • Custom User Avatar

    As far as I understand the solution, we are trying so find the maximum negative value (m) substracted from the sum of s so far (and m can't be higher than 0), and the max value will be the max between sum of all the elements so far, or sum of the elements without maximum negative value.
    But, yes, the solution is quite difficult to visualise.