[프로그래머스/Java] 폰켓몬 문제 나의 풀이import java.util.HashSet;class Solution { public int solution(int[] nums) { HashSet set = new HashSet(); for (int num : nums) { set.add(num); } int max = nums.length / 2; return Math.min(set.size(), max); }} study/Algorithm 2025.03.10