def distributeCandies(self, candies):
:type candies: List[int]
temp = set(candies)
m,n = len(temp),0.5*len(candies)
if m <= n:
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.