class Solution: def singleNumber(self, nums: List[int]) -> int: return sorted(nums, key=lambda e:nums.count(e))[0]