Hacker News new | past | comments | ask | show | jobs | submit login

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: