Tag Archives: Bug

What’s wrong with binary search!

There’s a bug in the code of “Binary Search” as most of us write it. When asked most of us code binary search as – int binary_search(int *a, int len, int key) { int low = 0; int high = … Continue reading

Posted in Algorithm, Binary Search, Google | Tagged , , , , | 7 Comments