Problem 4005 · Hard

Minimum Operations to Make Array Equal III

Each move scales one value up by a factor or down by an exact divisor. Find the fewest moves that bring every value in the array to a shared number.

Open the interactive visualisation