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

Function linear_search

day28/C++/Linear_Search.cpp:15–24  ·  view source on GitHub ↗

@desc: compares the key with each array elements. * @param: array , key (to be found), size of the array. * @return: index of key if present , -1 otherwise. * @TimeComplexity: O(n) < 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.70

Calls

no outgoing calls

Tested by

no test coverage detected