Important Array Problems for interview Preparation
Here is the list of Some interview questions related to array Data Structure which you might face up in your upcoming interview
- Peak Element
- Write a program to sort the given array
- Find the occurrence of an integer in the array
- Sort the array of 0s, 1s, and 2s
- Subarray with given Sum
- Move all the negative elements to one side of the array
- Find the Union and Intersection of the two sorted arrays
- Reverse the array
- Find the maximum and minimum element in an array
- Find the "Kth" max and min element of an array
- Given an array that consists of only 0, 1, and 2. Sort the array without using any sorting algo
- Find the Union and Intersection of the two sorted arrays.
- Write a program to cyclically rotate an array by one.
- Find Largest sum contiguous Subarray [Must do]
- Minimise the maximum difference between heights [V.IMP]
- Minimum no. of Jumps to reach the end of an array
- find duplicate in an array of N+1 Integers
- Merge 2 sorted arrays without using Extra space.
- Kadane's Algo [V.V.V.V.V IMP]
- Merge Intervals
- Next Permutation
- Count Inversion
- Best time to buy and sell stock
- find all pairs on integer array whose sum is equal to a given number
- find common elements In 3 sorted arrays
- Rearrange the array in alternating positive and negative items with O(1) extra space
- Find if there is any subarray with a sum equal to 0
- Find factorial of a large number
- find maximum product subarray
- Find longest consecutive subsequence
- Given an array of size n and a number k, find all elements that appear more than " n/k " times.
- Maximum profit by buying and selling a share almost twice
- Find whether an array is a subset of another array
- Find the triplet that sums to a given value
- Trapping Rainwater problem
- Chocolate Distribution problem
- Smallest Subarray with sum greater than a given value
- Three-way partitioning of an array around a given value
- Minimum swaps required to bring elements less equal K together
- Minimum no. of operations required to make an array palindrome
- Median of 2 sorted arrays of equal size
- Median of 2 sorted arrays of different size



