Given an array of size N-1 such that it only contains distinct integers in the range of 1 to N. Find the missing element. // Given an array of size N-1 such that it only contains distinct integers in ...
For each number between 1 to N, we will try to find it in the given array using linear search. And if we don’t find any of them, we will return the number. We know that the summation of the first N ...