You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// You are given a sequence of n-1 distinct positive integers, all of which are less than or equal to a integer ‘n’. You have to find the integer that is missing from the range [1,2, . . . n]. Solve the question without using arrays.
// Input Format:
// One line containing the integer ‘n’ where 2<=n<=10,000
// First line is followed by a sequence of ‘n-1’ distinct positive integers. Note that the sequence may not be in any particular order.