How can I solve this problem in python.
given a list of integers arr
, write a function that returns true
if and only if the number of occurrences of each value in the list is unique in python
So
a=[1, 2, 2, 3, 3, 3] True
Because number of 1s is 1, number of 2s are 2,,,
a=[1, 2, 3, 3] False
Because number of 1s is 1, number of 2s is 1