Question: https://oj.leetcode.com/problems/single-number/
Question Name: Single Number
1 2 3 4 5 6 7 8 9 | class Solution: # @param A, a list of integer # @return an integer def singleNumber(self, A): ''' Basic knowledge for cryptography: XOR operation ''' result = 0 for item in A: result ^= item return result |