Must Do Arrays Top 50 Coding Problems
Here is the collection of the Top 50 list of frequently asked interview questions on arrays. Problems in this Article are divided into three Levels so that readers can practice according to the difficulty level step by step.
Easy level:
Find a peak element which is not smaller than its neighbors
Find the minimum and maximum element in an array
Write a program to reverse the array
Write a program to sort the given array
Find the Kth largest and Kth smallest number in an 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
Medium level:
Write a program to cyclically rotate an array by one
Find the missing integer
Count Pairs with the given sum
Find duplicates in an array
Sort an Array using the Quicksort algorithm
Find common elements in three sorted arrays
Find the first repeating element in an array of integers
Find the first non-repeating element in a given array of integers
Subarrays with equal 1s and Os Rearrange the array in alternating_positive and negative items
Find if there is any subarray with a sum equal to zero
Find the Largest sum contiguous Subarray
Find the factorial of a large number
Find Maximum Product Subarray.
Find the longest consecutive subsequence
Find the minimum element in a rotated and sorted array
Max sum in the configuration
Minimum Platforms
Minimize the maximum difference between the heights
Minimum number of jumps to reach the end Stock Span problem
Find a triplet that sums to a given value
Smallest positive missing number
Find the row with a maximum number of 1's
Print the matrix in a Spiral manner
Find whether an array is a subset of another array
Implement two Stacks in an array
Majority Element
Wave Array
Trapping Rainwater
Hard level:
Maximum Index
Max sum path in two arrays
Find Missing And Repeating
Stock buy and sell Problem
Pair with the given sum in a sorted array
Chocolate Distribution Problem
Partition Equal Subset Sum
Smallest Positive integer that can't be represented as a sum
Coin Change Problem
Longest Alternating subsequence
Subscribe to my newsletter
Read articles from Abhishek directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by