Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary Search wrong description #15

Open
jenyuanhuang opened this issue Apr 16, 2021 · 1 comment
Open

Binary Search wrong description #15

jenyuanhuang opened this issue Apr 16, 2021 · 1 comment

Comments

@jenyuanhuang
Copy link

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.

@luizfboss
Copy link

luizfboss commented Jul 14, 2023

Fixed it. Please approve my pull request - #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants