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

grokking_algorithms/01_introduction_to_algorithms/java/01_binary_search/src/main/BinarySearch.java #217

Open
veiuper opened this issue Feb 26, 2022 · 3 comments

Comments

@veiuper
Copy link

veiuper commented Feb 26, 2022

int[] myList = {87, 21, 45, 93};
The array is not sorted.
Must be:
int[] myList = {21, 45, 87, 93};

@veiuper
Copy link
Author

veiuper commented Feb 26, 2022

System.out.println(binarySearch(myList, 87));

This line will work incorrectly.

@To-heeb
Copy link

To-heeb commented Mar 14, 2023

I also noticed this and was about to create an issue for it.

@aneeshmohan0
Copy link

I have created one. :(
I can open merge request if that helps.

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

3 participants