MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / BinarySearch

Method BinarySearch

data_structures/list_array.cpp:49–72  ·  view source on GitHub ↗

indicator whether list is sorted or not * @brief Search an element in the list using binarySearch. * @param dataArr list * @param first pointer to the first element in the remaining list * @param last pointer to the last element in the remaining list * @param val element that will be searched * @return index of element in the list if present else -1 */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected