Leetcode 1319 Solution
This article provides solution to leetcode question 1319 (unique-number-of-occurrences)
Access this page by simply typing in "lcs 1319" in your browser address bar if you have bunnylol configured.
Leetcode Question Link
class Solution: def uniqueOccurrences(self, arr: List[int]) -> bool: m = collections.defaultdict(int) for v in arr: m[v] += 1 return len(m) == len(set(m.values()))