<jupyter_start><jupyter_text>2020년 7월 20일 월요일 leetCode - Single Number II (Python) 문제 : https://leetcode.com/problems/single-number-ii/ 블로그 : https://somjang.tistory.com/entry/leetCode-137-Single-Number-II-Python  첫번째 시도<jupyter_code>from collections import Counter

class Solution:
    def singleNumber(self, nums: List[int]) -> int:
        answer = 0
        cnt = dict(Counter(nums))
        
        keys = cnt.keys()
        
        for key in keys:
            if cnt[key] == 1:
                answer = key
        
        return answer<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup