Here are Some Questions on Arrays that covers mostly all the topics related to Arrays.

We tried to provide some solutions with respective Time and Space complexities, there can be better solutions that exist.

- Find the Number Occurring Odd Number of Times.
- Find the Missing Number.
- Find Smallest Missing Number in an Array.
- Two elements whose sum is closest to zero.
- Reverse an Array.
- Segregate Even and Odd numbers in an array.
- Move all zeroes to the end of the Array.
- Maximum of all Sub-arrays of size K.
- Shuffle a given array.
- Find the Next Greatest Element (NGE) in an array.
- Replace every element with the greatest element on right side in an array.
- Rotate an array.
- Search an Element in a Sorted and Rotated Array.
- Majority Element in an array.
- To check if an array has pair of elements with given sum.
- Smallest and second smallest element in an array.
- Maximum sum with no adjacent elements taken.
- Largest Sum Contiguous Subarray (Kadane’s Algorithm).
- Maximum Product Subarray.
- Leaders in an Array.
- Counting Inversions in an array(Inversion Count).
- Find two Repeating Elements in an Array.
- Sort elements by frequency in an array.
- Counting sort.
- Pancake Sorting.
- Convert a Given Array to a Product Array.
- Minimum Length Unsorted Subarray, Sorting which makes the array Sorted.
- Maximum difference between two elements such that larger element appears after the smaller.
- Merge an Array of size n into Another of size m+n.
- Floor and Ceil of an element in a Sorted Array.
- Maximum and Minimum of an array using minimum comparisons.
- Number of Occurrences of a given Element in a Sorted Array.
- Find Fixed Point in a Given Array.
- Duplicates in an array in linear time and constant space.
- Union and Intersection of two sorted arrays.
- Sorting algorithm that makes the minimum number of memory writes.
- k largest elements in an array.
- Check if Array Elements are Consecutive.
- Maximum Length Bitonic Subarray.
- The Maximum Element in an array which is first Increasing then Decreasing.
- Equilibrium index of an array.
- Find the maximum j – i such that arr[j] greater than arr[i].
- Find a Triplet in the Given Array that sums to a Given Value.
- Four Elements that sum to a Given Value in an Array.
- Find Pythagorean Triplet in an Array.
- Count Smaller Elements on the Right in an array.
- Find a pair with the given difference in an array.
- Sort an Array in Wave Form.
- Replace every array element by multiplication of previous and next.
- Smallest Subarray with sum greater than a given value.
- Print All Distinct Elements of the given Array.
- Delete an Array Element(using one and two traversals).
- Find number of pairs(x,y) in an array such that x
^{y}> y^{x}. - Construct an array from it’s pair sum array.
- Rearrange Positive and Negative numbers in an array.
- Arrange elements of given array to form largest number.
- Find position of an element in a sorted array of infinite numbers.
- Find minimum number of merge operations to make an array palindrome.