Hi,
I was wondering if anyone has an easy way to get the lowest number not in a set.
For example:
A set of numbers (1,2,3,4,6,7,10)

I need an algorithm that will generate 5,8,9,11,13,...
Does anyone have an easy solution? I could probably work it out myself, but if someone already has an algorithm (any language - I'm using C++/Qt) then that would save me some effort

Thanks!