You are given an integer array nums and two integers x and y.
In each operation, you can select an index i such that i nums.length and perform the following:
Decrease nums[i] by x.
Decrease all other elements in nums by y.
Return the minimum number of operations required to make every value in nums less than or equal to
Constraints:
nums.length
nums[i]
y x
You are given an integer array nums and two integers x and y.
In each operation, you can select an index i such that i nums.length and perform the following:
Decrease nums[i] by x.
Decrease all other elements in nums by y.
Return the minimum number of operations required to make every value in nums less than or equal to
Constraints:
nums.length
nums[i]
y x