Array Problems for DSA
Level 1
- 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.
Level 2
- 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 0s.
- Rearrange the array in alternating positive and negative items.
Level 3
- 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
Comments
Post a Comment