Skip to content

debojyotiroy245/BinarySearch

Repository files navigation

BinarySearch

Contains the code for Binary Search.

Binary Search: Search a sorted array by repeatedly dividing the search interval in half. Begin with an interval covering the whole array. If the value of the search key is less than the item in the middle of the interval, narrow the interval to the lower half. Otherwise narrow it to the upper half. Repeatedly check until the value is found or the interval is empty.

The idea of binary search is to use the information that the array is sorted and reduce the time complexity to O(Log n).

About

This repo contains the code for Binary Search.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages