Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Qiangiang/binary-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

binary-search

//lowe_bound // lower bound, return the first index that is equal ot larger than target int lower_bound(int target, vector array){ Int l = 0; Int r = array.size(); while(l < r){
Int m = l + (r - l) / 2; if(array[m] < target){ l = m + 1; }else{ R = m; } } return l; }

About

quick snippet of code of binary search

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages