News for hackers. Stuff that matters.
Re:Ask HN: What sort of side-projects are useful for getting... by Robin_Message on Monday January 23, 2017 @02:16PM (#13464998)
I thought the trick with this one was to sum all the entries and subtract the sum of 0 to N-2. The remainder is the duplicate entry.

It's just a trick though; I don't think skill in coming up with these is particularly well-correlated with being a good programmer, and for that reason Google claims not to do teasers like this any more.

Re:Ask HN: What sort of side-projects are useful for getting... by bdavisx on Monday January 23, 2017 @04:41PM (#13466321)
If a company is relying on someone coming up with a trick answer, then they deserve the employees that they get.
Re:Ask HN: What sort of side-projects are useful for getting... by gms7777 on Monday January 23, 2017 @02:40PM (#13465228)
That works in the case where there is exactly one duplicate entry. The question says there is at least one dup entry.
Re:Ask HN: What sort of side-projects are useful for getting... by serge2k on Monday January 23, 2017 @03:25PM (#13465661)
> for that reason Google claims not to do teasers like this any more.

All google does is teasers like this.