문제
풀이 과정
const solutionA = (nums) => {
const getPhoneketmon = nums.length / 2;
const numsSet = new Set(nums);
return numsSet.size >= getPhoneketmon ? getPhoneketmon : numsSet.size;
};
const testA = solutionA([3, 3, 3, 2, 2, 2]);
console.log(testA);
틀린 부분이 있거나 보충해야 할 내용이 있다면 댓글이나 DM(sungstonemin)으로 알려주시면 감사하겠습니다😄