Given an array of integers nums, sort the array in increasing order based on the frequency of each value. If multiple values share the same frequency, sort those values in decreasing order.
Return the sorted array.
Constraints:
nums.length
nums[i]
Given an array of integers nums, sort the array in increasing order based on the frequency of each value. If multiple values share the same frequency, sort those values in decreasing order.
Return the sorted array.
Constraints:
nums.length
nums[i]