LeetCode biweekly contest 38
RankNameScoreFinish TimeQ1 (3)Q2 (4)Q3 (5)Q4 (6)318 / 7446YoungForest181:07:290:12:380:16:420:57:29 20:41:26 5539. Sort Array by Increasing Frequency
签到题。按照题意先统计频数,再按频数排序即可。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Solution {
public:
vector frequen