Easy
,Array
,Hash Table
1207. Unique Number of Occurrences
Given an array of integers arr
, return true
if the number of occurrences of each value in the array is unique, or false
otherwise.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= arr.length <= 1000
-1000 <= arr[i] <= 1000
KobeWed, Nov 30
KobeWed, Nov 30
我是廢物寫好長,但是過ㄌGP
昨天學會用map跟set真的是太好用惹!
Marsgoat Nov 30, 2022
the 抄
sheep Nov 30, 2022