Array: Intermediate Level Questions
Array: Intermediate Level Questions
3. You are given a list of n-1 integers and these integers are in the range
of 1 to n. There are no duplicates in the list. One of the integers is
missing in the list. Write an efficient code to find the missing integer.
[Practice here: https://practice.geeksforgeeks.org/problems/missing-number-in-array/0 ]
4. Find all pairs on integer array whose sum is equal to given number.
[Practice here: https://practice.geeksforgeeks.org/problems/count-pairs-with-given-sum/0 ]
18. Given an array of size n and a number k, fin all elements that appear
more than n/k times.
[Practice here: https://practice.geeksforgeeks.org/problems/count-element-
occurences/1 ]
25. Create an N*M matrix and take input from the user to populate it
and then print the matrix