Array Problems for DSA

 Level 1

  1. Find a peak element which is not smaller than its neighbors.
  2. Find the minimum and maximum element in an array.
  3. Write a program to reverse the array.
  4. Write a program to sort the given array.
  5. Find the Kth largest and Kth smallest number in an array.
  6. Find the occurrence of an integer in the array.
  7. Sort the array of 0s, 1s, and 2s.
  8. Subarray with given Sum.
  9. Move all the negative elements to one side of the array.
  10. Find the Union and Intersection of the two sorted arrays.

Level 2

  1. Write a program to cyclically rotate an array by one.
  2. Find the missing integer.
  3. Count Pairs with the given sum.
  4. Find duplicates in an array.
  5. Sort an Array using the Quicksort algorithm.
  6. Find common elements in three sorted arrays.
  7. Find the first repeating element in an array of integers.
  8. Find the first non-repeating element in a given array of integers.
  9. Subarrays with equal 1s and 0s.
  10. Rearrange the array in alternating positive and negative items.

Level 3

  1. Maximum Index
  2. Max sum path in two arrays
  3. Find Missing And Repeating
  4. Stock buy and sell Problem
  5. Pair with the given sum in a sorted array
  6. Chocolate Distribution Problem
  7. Partition Equal Subset Sum
  8. Smallest Positive integer that can’t be represented as a sum
  9. Coin Change Problem
  10. Longest Alternating subsequence

Comments

Popular Posts