Since the list is sorted you could subtract two consecutive entries. If the result is not 1, then you have a missing number.
3 Likes
Since the list is sorted you could subtract two consecutive entries. If the result is not 1, then you have a missing number.