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.
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.