Skip to content

#1207 - Unique Number of Occurrences

EasyHash Map / Set
Open on LeetCode

Given an array of integers nums, return true if the number of occurrences of each value in the array is unique, or false otherwise.

InputOutput
nums = [1,2,2,1,1,3]true
nums = [1,2]false
nums = [-3,0,1,-3,1,1,1,-3,10,0]true

Released under the MIT License.