problem

​1636. Sort Array by Increasing Frequency​

solution#1: sort

code

 

注意:

1. sort的用法,特别是第三个参数的使用;

2. lamda函数;

参考

1. ​​leetcode_easy_array_1636. Sort Array by Increasing Frequency​​;