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

Function LinearSearch

search/linear_search.cpp:21–31  ·  view source on GitHub ↗

* \brief [Algorithm implementation for linear search] * \param [in] array array to search in * \param [in] size length of array * \param [in] key key value to search for * \returns index where the key-value occurs in the array * \returns -1 if key-value not found */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

testsFunction · 0.85
mainFunction · 0.85
searchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected