Skip to content

Commit f7cbc41

Browse files
authored
Create e1207.py
1 parent 9405e05 commit f7cbc41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

my-submissions/e1207.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Solution:
2+
def uniqueOccurrences(self, arr: List[int]) -> bool:
3+
cnt = Counter(arr)
4+
return len(cnt.values()) == len(set(cnt.values()))

0 commit comments

Comments
 (0)