Solution 1 - Frequency Count + Unique Frequencies
Count each value, then check if the multiset of counts has duplicates.
""" 1207.1 - Unique Number of Occurrences - Solution 1 - Count + Set """
from collections import Counter
from typing import List
class Solution:
def uniqueOccurrences(self, arr: List[int]) -> bool:
vals = Counter(arr).values()
return len(vals) == len(set(vals))