archgaelix
Uses
Archive
array
Two Sum
#array
#hashing
#easy
Reverse an array
#array
Find the maximum and minimum element in an array
#array
Find the Kth max and min element in an array
#array
#heap
Sort an array of 0s, 1s and 2s
#array
Best Time to Buy and Sell Stock
#array
#easy
Move all the negative elements to one side of the array
#array
Find the union and intersection of the two sorted arrays
#array
Cyclically rotate an array by one
#array
Minimise the maximum difference between heights
#array
Minimum number of jumps to reach end of an array
#array
Find the duplicate in an array of N+1 integers
#array
Kadane’s algorithm
#array
#dp
Merge intervals
#array
Next permutation
#array
Count inversion
#array
#search-sort
Best time to buy and sell stock
#array
Find all pairs on integer array whose sum is equal to K
#array
Find common elements in 3 sorted arrays
#array
Rearrange the array in alternating positive and negative items with O(1) extra space
#array
Find if there is any subarray with sum equal to 0
#array
Find factorial of a large number
#array
Majority Element
#array
#sorting
#easy
Find maximum product subarray
#array
Find longest consecutive subsequence
#array
Given an array of size N and a number K, find all elements that appear more than N/K times
#array
Find whether an array is a subset of another array
#array
Contains Duplicate
#array
#hashtable
#sorting
#easy
Find the triplet that sum to a given value
#array
Trapping rain water
#array
Chocolate distribution
#array
#greedy
Insert Interval
#array
#interval
#medium
Smallest subarray with sum greater than a given value
#array
Three way partitioning of an array around a given value
#array
Minimum swaps required to bring elements <= K together
#array
3Sum
#array
#twopointers
#medium
Minimum number of merge operations required to make an array palindrome
#array
Median of 2 sorted arrays of equal size
#array
Median of 2 sorted arrays of different size
#array
Product of Array Except Self
#array
#prefixsum
#medium
Combination Sum
#array
#backtracking
#medium
Merge Intervals
#array
#interval
#medium
Sort Colors
#array
#twopointers
#medium
Container With Most Water
#array
#greedy
#twopointers
#medium
Merge 2 sorted arrays
#array
#search-sort