diff --git a/HSKIM/31to40/34.py b/HSKIM/31to40/34.py new file mode 100644 index 0000000..47abeb7 --- /dev/null +++ b/HSKIM/31to40/34.py @@ -0,0 +1,11 @@ +def solution(nums): + answer = 0 + size = len(nums) // 2 + pokemon = set(nums) + + answer = min(size, len(pokemon)) + + return answer + +nums = [3,1,2,3] +print(solution(nums)) \ No newline at end of file