@@ -0,0 +1,325 @@
+import java.util.HashSet;%0Aimport java.util.Set;%0A%0Apublic class Solution %7B%0A%0A    public int distributeCandies(int%5B%5D candies) %7B%0A%0A        Set%3CInteger%3E kinds = new HashSet%3CInteger%3E();%0A%0A        for (int candy : candies) %7B%0A            kinds.add(candy);%0A        %7D%0A%0A        return Math.min(candies.length / 2, kinds.size());%0A%0A    %7D%0A%0A%7D%0A

Create : 575 Distribute Candies