Basic Array Problems
Complete collection of basic array problems from GeeksforGeeks
Largest Element in Array
Find the largest element in an array
Second Largest Element
Find the second largest element in array
Check if Array is Sorted
Check if array is sorted in ascending order
Remove Duplicates from Sorted Array
Remove duplicates from a sorted array
Move All Zeros to End
Move all zeros to the end while maintaining order
Find Missing Number
Find the missing number in array from 1 to N
Count Frequency of Elements
Count frequency of each element in array
Two Sum - Pair with Given Sum
Find if there exists a pair with given sum
Array Subset of Another Array
Check if an array is subset of another array
Intersection of Two Arrays
Find intersection of two arrays
Find Duplicates in Array
Find all duplicate elements in array
First Repeating Element
Find the first repeating element in array
Value Equal to Index Value
Find elements where value equals its index
At Least Two Greater Elements
Find elements with at least two greater elements
Cyclically Rotate Array by One
Rotate array by one position clockwise
Find Minimum and Maximum
Find minimum and maximum element in array
Sort Array of 0s, 1s and 2s
Sort an array containing only 0s, 1s and 2s
Move Negative Elements to End
Move all negative elements to one side
Kth Smallest Element
Find kth smallest element in array
First and Last Occurrences
Find first and last occurrences of x in sorted array
Number of Occurrence
Count occurrences of a number in sorted array
Majority Element
Find element that appears more than n/2 times
More than N/K Occurrences
Find elements appearing more than n/k times
Find Element That Appears Once
Find element appearing once when others appear twice
Search in Rotated Array
Search an element in rotated sorted array
Count Pairs with Given Sum
Count pairs of elements with given sum
Find Common Elements
Find common elements in three sorted arrays
Rearrange Array Alternately
Rearrange array with max at first position, min at second
Number of Pairs
Count pairs where x^y > y^x
Inversion Count
Count inversions in array
Leaders in Array
Find all elements greater than all elements to their right
Equilibrium Point
Find equilibrium point where left sum equals right sum
Pythagorean Triplet
Check if array has Pythagorean triplet
Chocolate Distribution Problem
Minimize difference between maximum and minimum chocolates
Stock Buy and Sell
Find maximum profit by buying and selling stocks
Element with Left Side Smaller
Find element with all left side smaller and right side greater
Problem Statistics
Total Problems
60
Completed
0
Remaining
60
Progress
0%