LeetCode - Find the Duplicate Number(287)

marafo·2021년 6월 11일

Array - Medium

class Solution:
    def findDuplicate(self, nums: List[int]) -> int:
        k = collections.Counter(nums).most_common()
        
        return k[0][0]
profile
프론트 개발자 준비

0개의 댓글