egonSchiele / grokking_algorithms

Code for the book Grokking Algorithms (https://amzn.to/29rVyHf)
Other
11.72k stars 3.8k forks source link

Java Chapter 1 #282

Open aneeshmohan0 opened 7 months ago

aneeshmohan0 commented 7 months ago

In BinarySearch.java Since the array myList is unsorted, the binary search algorithm may not produce the correct result. While the algorithm might still run without errors, the output cannot be guaranteed to be accurate because it's searching in an unsorted context.

If you provide me permission I will open the Merge Request for the bug.