- Search, insert and delete in an unsorted array
- Search, insert and delete in a sorted array
- Given an array A[] and a number x, check for pair in A[] with sum as x
- Majority Element
- Find the Number Occurring Odd Number of Times
- Find the Missing Number
- Searching in an array where adjacent differ by at most k
- Merge an array of size n into another array of size m+n
- Searching in an array where adjacent differ by at most k
- Maximum Subarray Sum Excluding Certain Elements
- Leaders in an array
- Find the only repetitive element between 1 to n-1
- Sort elements by frequency | Set 1
- Count Inversions in an array | Set 1 (Using Merge Sort)
- Two elements whose sum is closest to zero
- Shortest Un-ordered Subarray
- Shortest Un-ordered Subarray
- Check for Majority Element in a sorted array
- Union and Intersection of two sorted arrays
- Ceiling in a sorted array
- Find the two repeating elements in a given array
- Sort an array of 0s, 1s and 2s
- Find the Minimum length Unsorted Subarray, sorting which makes the complete array sorted
- Equilibrium index of an array
- Count number of occurrences (or frequency) in a sorted array
- Find the repeating and the missing | Added 3 new methods
- Median in a stream of integers (running integers)
- Find a Fixed Point in a given array
- Find sub-array with given sum
- Find a triplet that sum to a given value
- Find the two numbers with odd occurrences in an unsorted array
- Find a pair with the given difference
- Find four elements that sum to a given value | Set 1 (n^3 solution)
- Find four elements that sum to a given value | Set 2 ( O(n^2Logn) Solution)
- Median of two sorted arrays of different sizes
- Count the number of possible triangles
- Find a peak element
- Find number of pairs (x, y) in an array such that x^y > y^x
- Count all distinct pairs with difference equal to k
- Find if there is a sub-array with 0 sum
- Given a sorted array and a number x, find the pair in array whose sum is closest to x
- Count 1’s in a sorted binary array
- Print All Distinct Elements of a given integer array
- Construct an array from its pair-sum array
- Find common elements in three sorted arrays
- Find the first repeating element in an array of integers
- Find position of an element in a sorted array of infinite numbers
- Check if a given array contains duplicate elements within k distance from each other
- Find the element that appears once
- Find Union and Intersection of two unsorted arrays
- Delete an element from array (Using two traversals and one traversal)
- Count frequencies of all elements in array in O(1) extra space and O(n) time
- Trapping Rain Water
- Count triplets with sum smaller than a given value
- Count Inversions of size three in a given array
- Merge two sorted arrays with O(1) extra space
- Find lost element from a duplicated array
- Count pairs with given sum
- Search, insert and delete in an unsorted array
- Search, insert and delete in a sorted array
- Given an array A[] and a number x, check for pair in A[] with sum as x
- Majority Element
- Find the Number Occurring Odd Number of Times
- Find the Missing Number
- Searching in an array where adjacent differ by at most k
- Merge an array of size n into another array of size m+n
- Searching in an array where adjacent differ by at most k
- Maximum Subarray Sum Excluding Certain Elements
- Leaders in an array
- Find the only repetitive element between 1 to n-1
- Sort elements by frequency | Set 1
- Count Inversions in an array | Set 1 (Using Merge Sort)
- Two elements whose sum is closest to zero
- Shortest Un-ordered Subarray
- Shortest Un-ordered Subarray
- Check for Majority Element in a sorted array
- Union and Intersection of two sorted arrays
- Ceiling in a sorted array
- Find the two repeating elements in a given array
- Sort an array of 0s, 1s and 2s
- Find the Minimum length Unsorted Subarray, sorting which makes the complete array sorted
- Equilibrium index of an array
- Count number of occurrences (or frequency) in a sorted array
- Find the repeating and the missing | Added 3 new methods
- Median in a stream of integers (running integers)
- Find a Fixed Point in a given array
- Find sub-array with given sum
- Find a triplet that sum to a given value
- Find the two numbers with odd occurrences in an unsorted array
- Find a pair with the given difference
- Find four elements that sum to a given value | Set 1 (n^3 solution)
- Find four elements that sum to a given value | Set 2 ( O(n^2Logn) Solution)
- Median of two sorted arrays of different sizes
- Count the number of possible triangles
- Find a peak element
- Find number of pairs (x, y) in an array such that x^y > y^x
- Count all distinct pairs with difference equal to k
- Find if there is a sub-array with 0 sum
- Given a sorted array and a number x, find the pair in array whose sum is closest to x
- Count 1’s in a sorted binary array
- Print All Distinct Elements of a given integer array
- Construct an array from its pair-sum array
- Find common elements in three sorted arrays
- Find the first repeating element in an array of integers
- Find position of an element in a sorted array of infinite numbers
- Check if a given array contains duplicate elements within k distance from each other
- Find the element that appears once
- Find Union and Intersection of two unsorted arrays
- Delete an element from array (Using two traversals and one traversal)
- Count frequencies of all elements in array in O(1) extra space and O(n) time
- Trapping Rain Water
- Count triplets with sum smaller than a given value
- Count Inversions of size three in a given array
- Merge two sorted arrays with O(1) extra space
- Find lost element from a duplicated array
- Count pairs with given sum
No comments:
Post a Comment