#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2019/4/4 17:45
# @Author  : bgzhou

def singleNumber(nums: list):
    k = 0
    for i in nums:
        k = k ^ i
    return k

if __name__ == '__main__':
    print(singleNumber([1, 2, 2, 1, 3]))
2fec031577a1438d2991af6a75c021ccc7a48698
<mask token>

def singleNumber(nums: list):
    k = 0
    for i in nums:
        k = k ^ i
    return k


<mask token>

def singleNumber(nums: list):
    k = 0
    for i in nums:
        k = k ^ i
    return k


if __name__ == '__main__':
    print(singleNumber([1, 2, 2, 1, 3]))

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2019/4/4 17:45
# @Author  : bgzhou

def singleNumber(nums: list):
    k = 0
    for i in nums:
        k = k ^ i
    return k

if __name__ == '__main__':
    print(singleNumber([1, 2, 2, 1, 3]))