Open In App
Related Articles

Top 50 Array Coding Problems for Interviews

Like Article
Save Article
Report issue

Here is the collection of the Top 50 list of frequently asked interviews question on arrays. Problems in this Article are divided into three Levels so that readers can practice according to the difficulty level step by step. 


Level 1



Find a peak element which is not smaller than its neighborsSolve
Find the minimum and maximum element in an arraySolve
Write a program to reverse the arraySolve
Write a program to sort the given arraySolve
Find the Kth largest and Kth smallest number in an arraySolve
Find the occurrence of an integer in the arraySolve
Sort the array of 0s, 1s, and 2sSolve
Subarray with given SumSolve
Move all the negative elements to one side of the arraySolve
Find the Union and Intersection of the two sorted arraysSolve

Level 2



Write a program to cyclically rotate an array by oneSolve
Find the missing integerSolve
Count Pairs with the given sumSolve
Find duplicates in an arraySolve
Sort an Array using the Quicksort algorithmSolve
Find common elements in three sorted arraysSolve
Find the first repeating element in an array of integersSolve
Find the first non-repeating element in a given array of integersSolve
Subarrays with equal 1s and 0sSolve
Rearrange the array in alternating positive and negative itemsSolve
Find if there is any subarray with a sum equal to zeroSolve
Find the Largest sum contiguous SubarraySolve
Find the factorial of a large numberSolve
Find Maximum Product SubarraySolve
Find the longest consecutive subsequenceSolve
Find the minimum element in a rotated and sorted arraySolve
Max sum in the configurationSolve
Minimum PlatformsSolve
Minimize the maximum difference between the heightsSolve
Minimum number of jumps to reach the endSolve
Stock Span problemSolve
Find a triplet that sums to a given valueSolve
Smallest positive missing numberSolve
Find the row with a maximum number of 1’sSolve
Print the matrix in a Spiral mannerSolve
Find whether an array is a subset of another arraySolve
Implement two Stacks in an arraySolve
Majority ElementSolve
Wave ArraySolve
Trapping RainwaterSolve

Level 3



Maximum IndexSolve
Max sum path in two arraysSolve
Find Missing And RepeatingSolve
Stock buy and sell ProblemSolve
Pair with the given sum in a sorted arraySolve
Chocolate Distribution ProblemSolve
Partition Equal Subset SumSolve
Smallest Positive integer that can’t be represented as a sumSolve
Coin Change ProblemSolve
Longest Alternating subsequenceSolve


Related Articles:

Some other important Tutorials:

Last Updated : 28 Nov, 2023
Like Article
Save Article
Share your thoughts in the comments
Similar Reads