-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Binary Search
Mission Peace edited this page Apr 3, 2016
·
3 revisions
- Given an arithmetic progression with one number mission find that missing number - ArithmeticProgressionSearch.java
- Search an element in sorted array - BinarySearch.java
- Search an element in array which is first increasing then decreasing then increasing or other way round - CircularBinarySearch.java
- Given a sorted array find total number of pairs whose difference is k - CountNDistinctPairsWithDifferenceK.java
- Given a sorted array with duplicates, find first occurrence of a given element - FirstOccurrenceOfNumberInSortedArray.java
- Find floor and ceiling of given element in sorted array - FloorAndCeilingSortedArray.java
- Find median of two sorted array of same size - MedianOfTwoSortedArray.java
- Find a missing number in array of consecutive numbers - MissingNumberInConsecutiveNumbers.java
- Find a value of function in which this monotonically increasing function becomes positive - MonotonicallyIncreasingFunctionBecomesPositive.java
- Find number of pairs where x^y > y^x - NumberOfPairWithXPowerYGreaterThanYPowerX.java
- Given an array find an element which is larger than both its neighbors - PeakElement.java
- Given an array which is sorted and rotated find an element - SortedAndRotatedArraySearch.java
- Minimum element in sorted and rotated array