Ad
  • Custom User Avatar

    I really liked that way of solving, but I didn't really understand why not to just have variable max and to check each time if the sum is smaller or equal to t and that the sum is greater than the max, and otherwise do nothing and continue to the next number?