### Binary Search

2021

In this tutorial, you will learn how Binary Search sort works. Also, you will find working examples of Binary Search in C, C++, Java and […]

### Java Program to Find the Median of two Sorted Arrays using Binary Search Approach

2021

This is a Java Program to find median of two sorted arrays using binary search approach. In probability theory and statistics, a median is described […]

### Java Program to find the number of occurrences of a given number using Binary Search approach

2021

This is a Java Program to find number of occurences of a given number using binary search approach. The time complexity of the following program […]

### Java Program to find the maximum subarray sum using Binary Search approach

2021

Problem Description Given an array of integers, find the contiguous subarray, whose sum of the elements, is maximum.Example: Array = [2 1 3 5 -2 […]

### Java Program to find the peak element of an array using Binary Search approach

2021

This is a Java Program to find peak element of an array. A peak element of an array is that element which is greater than […]

### Java Program to Find the Minimum Element of a Rotated Sorted Array using Binary Search approach

2021

This is a Java Program to find minimum element of a rotated sorted array. The following program uses a binary search approach to find the […]

### Java Program to Find Maximum Element in an Array using Binary Search

2021

This is a java program to find the maximum element using binary search technique. Binary search requires sequence to be sorted. We return the last […]

### Java Program to Implement a Binary Search Algorithm for a Specific Search Sequence

2021

This is a java program to search sequence using binary search. This is a simple extension of binary search algorithm to find an element. Here […]

### Java Program to Compare Binary and Sequential Search

2021

This is a java program to compare Binary Search and Linear Search algorithms. Following class provides the time required to search an element for both […]