mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update search/interpolation_search.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
c7164301f4
commit
befc191d2d
@ -95,7 +95,7 @@ uint64_t interpolationSearch(const std::vector<uint64_t> &arr,
|
||||
* @brief Self-test implementation
|
||||
* @returns void
|
||||
*******************************************************************************/
|
||||
void tests() {
|
||||
static void tests() {
|
||||
// testcase
|
||||
// array = [10, 12, 13, 16, 18, 19, 20, 21, 1, 2, 3, 4, 22, 23, 24, 33, 35,
|
||||
// 42, 47] , Value = 33 should return 15
|
||||
|
Loading…
Reference in New Issue
Block a user