You are viewing a single comment's thread. Return to all comments →
This is a simple solution in python, reduce applies a accumulative operation to all elements in the list into a single value Python:
from functools import reduce from operator import ixor def lonelyinteger(a): return reduce(ixor, a)
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer
You are viewing a single comment's thread. Return to all comments →
This is a simple solution in python, reduce applies a accumulative operation to all elements in the list into a single value Python: