Ad
  • Custom User Avatar

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

  • Custom User Avatar

    I don't understand, why everyone are doing 3 ifs, while you only need 2?

  • 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?