Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Implement binary search

Name: Anonymous 2012-02-16 17:28

Implement a correct and working binary search algorithm in your language of choice. Be clever. I know you can make your code interesting.

Name: Anonymous 2012-02-16 21:13

void *BinarySearch(const void *key, const void *base, size_t nel, size_t width, int (*compar)(const void *, const void *)) {
     return bsearch(key, base, nel, width, compar);
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List