Finding missing numbers in an array

Posted by sandeep on Stack Overflow See other posts from Stack Overflow or by sandeep
Published on 2010-04-07T05:10:36Z Indexed on 2010/04/07 9:03 UTC
Read the original article Hit count: 233

Given an array of size n, which contains numbers in the range 1 to n, and in which each number is present at least once, but some numbers may be missing, how can I find the missing numbers?

© Stack Overflow or respective owner

Related posts about algorithm

Related posts about interview-questions