Possible Duplicate:
Easy interview question got harder: given numbers 1..100, find the missing number(s)
A job interview question. Suppose we have an array of size N-2, with all the values from 1 to N, except for two missing values. (N>0)
An algorithm for finding the two missing numbers is needed, that traverses the array only once.