You are given an array nums of positive integers. In one operation, you may choose any element from nums and replace it with exactly half of its value.
Return the minimum number of operations required to reduce the total sum of nums by at least half of its initial sum.
Constraints:
nums.length
nums[i]
You are given an array nums of positive integers. In one operation, you may choose any element from nums and replace it with exactly half of its value.
Return the minimum number of operations required to reduce the total sum of nums by at least half of its initial sum.
Constraints:
nums.length
nums[i]