Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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.
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.