Array | Order Statistics
Recent articles on Order Statistics
- K’th Smallest/Largest Element in Unsorted Array | Set 1
- K’th Smallest/Largest Element in Unsorted Array | Set 2 (Expected Linear Time)
- K’th Smallest/Largest Element in Unsorted Array | Set 3 (Worst Case Linear Time)
- K’th Smallest/Largest Element using STL
- k largest(or smallest) elements in an array | added Min Heap method
- Kth smallest element in a row-wise and column-wise sorted 2D array | Set 1
- Program to find largest element in an array
- Find the largest three elements in an array
- Find all elements in array which have at-least two greater elements
- Program for Mean and median of an unsorted array
- Median of Stream of Running Integers using STL
- Minimum product of k integers in an array of positive Integers
- K-th Largest Sum Contiguous Subarray
- K maximum sum combinations from two arrays
- K maximum sums of overlapping contiguous sub-arrays
- K maximum sums of non-overlapping contiguous sub-arrays
- k smallest elements in same order using O(1) extra space
- Find k pairs with smallest sums in two arrays
- k-th smallest absolute difference of two elements in an array
- Find Second largest element in an array
- Find k numbers with most occurrences in the given array
- Find the smallest and second smallest elements in an array
- Find the smallest missing number
- Maximum sum such that no two elements are adjacent
- Maximum and minimum of an array using minimum number of comparisons
- Maximum difference between two elements such that larger element appears after the smaller number
- Given an array arr[], find the maximum j – i such that arr[j] > arr[i]
- Maximum of all subarrays of size k
- Find the minimum distance between two numbers
- Find the maximum element in an array which is first increasing and then decreasing
- Count smaller elements on right side
- Longest Monotonically Increasing Subsequence Size (N log N)
- Find the smallest positive number missing from an unsorted array | Set 1
- Find the maximum repeating number in O(n) time and O(1) extra space
- Given an array of of size n and a number k, find all elements that appear more than n/k times
- Find the Increasing subsequence of length three with maximum product
- Maximum Sum Path in Two Arrays
- Find the closest pair from two sorted arrays
- Find the largest pair sum in an unsorted array
- Smallest greater elements in whole array
- Delete array elements which are smaller than next or become smaller
- Online algorithm for checking palindrome in a stream
- Delete array elements which are smaller than next or become smaller
- Find zeroes to be flipped so that number of consecutive 1’s is maximized
- Count Strictly Increasing Subarrays
- K’th largest element in a stream
- Find k pairs with smallest sums in two arrays
- Maximum difference between group of k-elements and rest of the array.
- Minimum number of elements to add to make median equals x
- Next Greater Element
Quick Links :