Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
thorax
on Sept 1, 2008
|
parent
|
context
|
favorite
| on:
Stack Overflow: the Blind Leading the Blind
To clarify for non-Pythoners/non-coders: If you assume "nums" already contains the list, most of his code above is setup. You only need these two lines of his code to get the answer:
import operator answer = reduce(operator.xor, nums)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: