📅  最后修改于: 2022-03-11 14:58:04.900000             🧑  作者: Mango
代码示例1
int binsearch(int lo, int hi)
{
while(lo < hi)
{
int mid = lo + (hi-lo)/2;
if(check(mid))
hi = mid;
else
lo = mid + 1;
}
return lo;
}