python-coding-interview icon indicating copy to clipboard operation
python-coding-interview copied to clipboard

Binary Search wrong description

Open jenyuanhuang opened this issue 4 years ago • 1 comments

Decrease and Conquer - Binary Search • If it is smaller than the target, move to the left half by setting the right pointer to the position right before the middle position, r = m − 1. • If it is larger than the target, move to the right half by setting the left pointer to the position right after the middle position, l = m + 1.

jenyuanhuang avatar Apr 16 '21 06:04 jenyuanhuang

Fixed it. Please approve my pull request - #23

luizfboss avatar Jul 14 '23 03:07 luizfboss