Ad
  • Custom User Avatar

    The empty list is a valid subarray. Sum of empty list is 0, greater than any negative number. 0 is the correct answer when the array only has negative elements.