L1 : 폰켓몬 Python

jhyunn·2023년 1월 15일
0

Programmers

목록 보기
14/69

L1 : 폰켓몬 Python

https://school.programmers.co.kr/learn/courses/30/lessons/1845

def solution(nums):
    return min(len(nums)//2, len(set(nums)))

set으로 중복 제거

profile
https://github.com/Sungjeonghyun

0개의 댓글