2023-09-24 12:52:13 +0300 MSK

Single Number

Code

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