I asked a similar question in an interview.

來源: 2009-05-18 10:01:54 [博客] [舊帖] [給我悄悄話] 本文已被閱讀:

I guess you want to relax the condition that every number appears at least once to avoid Haha's hack. :-) And the question is to find one repeated number.