吾生也有涯,而知也无涯 。以有涯随无涯,殆已!
from operator import xor class Solution: def singleNumber(self, nums: List[int]) -> int: return reduce(xor, nums)
No comments:
Post a Comment