grokking_algorithms
grokking_algorithms copied to clipboard
Code for the book Grokking Algorithms (https://amzn.to/29rVyHf)
Removed a comment with Chinese characters
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};
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...
use template to the item that we are search for
There is no solution for typescript
Current alternative solution works only for arrays of natural numbers and for empty arrays it returns 0 instead of null or Error. This commit fixes these problems.
The longest common substring is wrongly in Python coded and throws an error anytime it runs, this should be prioritized since it is a core part of the book. ```...
Update: Arraylist is not to be modified during recursion.