문제 출처
function solution(nums) { var answer = 0; let tmp = [] nums.forEach(el => { if (!tmp.includes(el)) tmp.push(el) }) return answer = nums.length / 2 > tmp.length ? tmp.length : nums.length / 2; }