You are given an integer array nums and an integer k.
In a single operation, you can select any index i and either increase or decrease nums[i] by
The frequency score of the array is defined as the maximum frequency of any value present in nums.
Return the maximum possible frequency score of nums after applying at most k operations.
Constraints:
nums.length
nums[i]
k
You are given an integer array nums and an integer k.
In a single operation, you can select any index i and either increase or decrease nums[i] by
The frequency score of the array is defined as the maximum frequency of any value present in nums.
Return the maximum possible frequency score of nums after applying at most k operations.
Constraints:
nums.length
nums[i]
k