Find missing number in sequence in set or list

Posted by Dave18 on Stack Overflow See other posts from Stack Overflow or by Dave18
Published on 2010-06-16T16:48:32Z Indexed on 2010/06/16 16:52 UTC
Read the original article Hit count: 189

Filed under:
|
|
|
|

If a std::set or std::list contains a sequence of natural numbers (1, 2, 3..). would there be a function in standard library to find the missing number?

© Stack Overflow or respective owner

Related posts about c++

Related posts about c