Alice has n candies, where the candy at index i is of type candyType[i]. She is permitted to eat at most n is always even).
Alice wants to maximize the number of distinct candy types she can eat while following this restriction.
Given the integer array candyType of length n, return the maximum number of unique candy types she can eat if she eats
Constraints:
n == candyType.length
n
n is even.
candyType[i]
Alice has n candies, where the candy at index i is of type candyType[i]. She is permitted to eat at most n is always even).
Alice wants to maximize the number of distinct candy types she can eat while following this restriction.
Given the integer array candyType of length n, return the maximum number of unique candy types she can eat if she eats
Constraints:
n == candyType.length
n
n is even.
candyType[i]