How to Find a Missing Number in a Sequence?
What is the story behind How to Find a Missing Number in a Sequence? Get the answers here.
Let’s suppose you have a text file of consecutive numbers, such as below, with each number on its own line: However, there are some missing numbers and gaps. In the example above, 5 is missing, and there are two gaps: between 8 and 11 and also between 14 and 17.