vishnudas-bluefox / HacktoberFest-2021

An 24x7 active repo for your contribution feel free to contribute:)
13 stars 57 forks source link

Array I/P,O/P and Binary Search #21

Closed avishkar2001 closed 2 years ago

avishkar2001 commented 3 years ago

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.