MCPcopy Create free account
hub / github.com/TheAlgorithms/C / binarysearch2

Function binarysearch2

searching/binary_search.c:51–72  ·  view source on GitHub ↗

Iterative implementation * \param[in] arr array to search * \param l left index of search range * \param r right index of search range * \param x target value to search for * \returns location of x assuming array arr[l..r] is present * \returns -1 otherwise */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected