grokking_algorithms
grokking_algorithms copied to clipboard
Minor fix in 01_binary_search.cpp
use template to the item that we are search for
I like this change, but lower in the file we're comparing guess and item:
if (guess > item)
Is there a way to indicate in C++ that T
can be any type that is comparable?