Skip to content

Commit

Permalink
1207
Browse files Browse the repository at this point in the history
  • Loading branch information
isinsuarici committed Feb 16, 2022
1 parent 3d79702 commit d19eda9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions E_1207_UniqueNumberofOccurrences.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class Solution:
def uniqueOccurrences(self, arr: List[int]) -> bool:
count = collections.Counter(arr)
return len(count) == len(set(count.values()))

0 comments on commit d19eda9

Please sign in to comment.