Ad
  • Default User Avatar
  • Custom User Avatar

    Alright got it! Was just confused if it was intended or not, I guess updating the question to be clearer with regards to (largest possible values) would make it fine :)

  • Default User Avatar

    OK, I understand your point. In front of many problems with different kind of solutions I modified the tests: I don't compare any more "Actual" and "Expected" as I did before but only verify that the result is an increasing sequence and that the total is correct.
    For example you returned 1 2 11 315 7093 and I get 2 3 5 119 7099. Some argue that 7093 is smaller than 7099 but 315 is bigger than 119... One can always discuss where to find the largest possible values.
    I can modify If there are multiple solutions (and there will be), return the result with the largest possible values: by
    If there are multiple solutions (and there will be), return as far as possible the result with the largest possible values:.
    Sorry but I don't have a better way to propose:-(

  • Custom User Avatar

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