You are given a list of whole numbers in ascending order. You need to find which numbers are missing in the sequence.
Create a program that takes in a list of numbers and outputs the missing numbers in the sequence separated by spaces.
The first input denotes the length of the list (N). The next N lines contain the list elements as integers.
A string containing a space-separated list of the missing numbers.
5
2
4
5
7
8
3 6
The input list is missing the numbers 3 and 6.