Ad
  • Custom User Avatar

    Nice problem, thanks!

    Minor suggestions:

    It would be would be helpful to have an example, either in the description or the sample tests, where upgrading as soon as possible is not part of the solution.

    Display the parameter values for each random test. It helps with debugging, and saves the user having to print them out.

    Include what "cpc" stands for.

    Explain what n refers to in "The reference solution executes with O(log n) taking less than 1s."

    It's not clear why "numpy" is included in the tags. Maybe either explain why or remove it.

  • Custom User Avatar

    I can't tell if my code is somehow finding the gas prices wrong for some cases, but I am getting an error with some of the random cases and it seems like there are at least sometimes random tests where there is a tie so two sets of alterations have the same cost and same length.