본문으로 건너뛰기

폰켓몬

Solution​

function solution(nums) {
return Math.min(new Set(nums).size, Math.floor(nums.length / 2));
}

Review​

.

References​