2023-09-11 19:06:00 +0300 MSK

Single Number

Code

class Solution:
    def singleNumber(self, nums: List[int]) -> int:
        return reduce(xor, nums)