Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import functools
- import operator
- class Solution:
- def singleNumber(self, nums: List[int]) -> int:
- return functools.reduce(operator.xor, nums)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement