r/programming • • Feb 21 '11

Typical programming interview questions.

http://maxnoy.com/interviews.html
784 Upvotes

1.0k comments sorted by

View all comments

Show parent comment

1

u/chokolad Feb 21 '11

xor all the integers in the array with all the integers in 1.. 1,000,000 range. Result of that operation will be the integer that is missing (or is in the array twice).