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