fork(1) download
  1. import operator
  2.  
  3. def single_number(l):
  4. return reduce(operator.xor, l, 0)
  5.  
  6. print single_number([1, 1, 2, 2, 3, 4, 4, 5, 5])
Success #stdin #stdout 0.02s 44632KB
stdin
Standard input is empty
stdout
3