Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 751 Bytes

_1207. Unique Number of Occurrences.md

File metadata and controls

33 lines (22 loc) · 751 Bytes

All prompts are owned by LeetCode. To view the prompt, click the title link above.

Back to top


First completed : September 25, 2024

Last updated : September 25, 2024


Related Topics : Array, Hash Table

Acceptance Rate : 78.07 %


Solutions

Python

class Solution:
    def uniqueOccurrences(self, arr: List[int]) -> bool:
        cnt = Counter(arr)
        return len(cnt.values()) == len(set(cnt.values()))