Ad
  • Custom User Avatar

    It does not say that, that is the problem. In the description, the 2 examples are with break days at distance and not consecutive. Also you can read:

    <<You can work for up to k consecutive days, but after that, you must take a mandatory break day where you earn nothing.>>

    The working days are "up to k", but the mandatory break day is singular so can be confusing (at least for me).

    It would be better specifying that for break days too, sort of:

    <<You can work for up to k consecutive days, but after that, you must take one or more consecutive mandatory break days where you earn nothing.>>

  • Custom User Avatar

    thank you. I thought no more than one break day was allowed.

  • Custom User Avatar

    ok, based on that how this can be right -> assert_equals(maximize_earnings([5, 3, 1, 8], 1), 13, allow_raise=True); ?
    The only way to get 13 is 5 + 8. How that would return that value?

  • Custom User Avatar

    does it mean that the list of values is not meant to be "sorted" in a convenient way? For example [5000, 4000, 3000, 1000, 2000]? The sequence is fixed?

  • Custom User Avatar

    Why this:

    assert_equals(maximize_earnings([1000, 2000, 3000, 4000, 5000], 3), 13000, allow_raise=True);

    does it return 13000 (excluding 2000), instead of returning 14000 and excluding 1000?

    What I understood from the description is that you should consider as days off, the less convenient from a value prospective (so in that case 1000).

    Thanks

  • Custom User Avatar