There are 1Billion numbers from 1 to 1Billion but there is one number missing. They are all randomly available, how will you find the missing one in best possible way.
- randomly available means are they randomly distributed throughout the array (i.e. 5984,1,10937658, 20 ...)