Update search/interpolation_search.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
Lajat5 2021-12-19 14:29:38 +05:30 committed by GitHub
parent c7164301f4
commit befc191d2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ uint64_t interpolationSearch(const std::vector<uint64_t> &arr,
* @brief Self-test implementation * @brief Self-test implementation
* @returns void * @returns void
*******************************************************************************/ *******************************************************************************/
void tests() { static void tests() {
// testcase // testcase
// array = [10, 12, 13, 16, 18, 19, 20, 21, 1, 2, 3, 4, 22, 23, 24, 33, 35, // 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 // 42, 47] , Value = 33 should return 15