grokking_algorithms icon indicating copy to clipboard operation
grokking_algorithms copied to clipboard

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

Open veiuper opened this issue 3 years ago • 3 comments

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

veiuper avatar Feb 26 '22 11:02 veiuper

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

This line will work incorrectly.

veiuper avatar Feb 26 '22 11:02 veiuper

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

To-heeb avatar Mar 14 '23 20:03 To-heeb

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

aneeshmohan0 avatar Apr 14 '24 15:04 aneeshmohan0