arrayscodingsearching
Keep a clear invariant in binary search
Anonymous
For a lower-bound search on sorted values, keep the answer in a half-open interval from lo up to, but not including, hi. When lo equals hi, that position is the first value not less than the target, or the end.
0