grokking_algorithms/01_introduction_to_algorithms/java/01_binary_search/src/main/BinarySearch.java
veiuper opened this issue · 3 comments
veiuper commented
int[] myList = {87, 21, 45, 93};
The array is not sorted.
Must be:
int[] myList = {21, 45, 87, 93};
veiuper commented
System.out.println(binarySearch(myList, 87));
This line will work incorrectly.
To-heeb commented
I also noticed this and was about to create an issue for it.
aneeshmohan0 commented
I have created one. :(
I can open merge request if that helps.