1636. Sort Array by Increasing Frequency
https://leetcode.com/problems/sort-array-by-increasing-frequency
Description
Given an array of integers nums
, sort the array in increasing order based on the frequency of the values. If multiple values have the same frequency, sort them in decreasing order.
Return the sorted array.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= nums.length <= 100
-100 <= nums[i] <= 100
ac
Previous1635. Hopper Company Queries INext1637. Widest Vertical Area Between Two Points Containing No Points
Last updated