MCPcopy Create free account
hub / github.com/CodeToExpress/dailycodebase / Binary_search

Function Binary_search

day29/C++/karthick_binary_search.cpp:15–35  ·  view source on GitHub ↗

@desc: splits the array into two sections at each step, then checks the element in the desired one. * @param: array , key (to be found), size of the array. * @return: index of key if present , -1 otherwise. * @TimeComplexity: O( logn ) < n = size of the array > */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected