Minimum Cost to Equalize Array
Raise every value to one shared target. A single step costs one price, while a paired step lifts two different values for another price. Compare the cheapest mix at each candidate target near the balance point.
Raise every value to one shared target. A single step costs one price, while a paired step lifts two different values for another price. Compare the cheapest mix at each candidate target near the balance point.