Skip to content

Files

Latest commit

 

History

History
 
 

11_Binary-Search

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Binary Search

We should write mid = start + (end - start)//2 because in some test cases mid = (start + end)//2 may give Integer Overflow Error

or,

mid = (low + high) >> 1
right shift by 1 bit