From 7c132980ab4261f76fdcf18a62086842a6e686f5 Mon Sep 17 00:00:00 2001 From: GohJunLe <108907711+GohJunLe@users.noreply.github.com> Date: Sat, 3 Sep 2022 17:21:27 +0800 Subject: [PATCH] Update src/algorithms/search/exponential-search/exponentialSearch.js Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com> --- src/algorithms/search/exponential-search/exponentialSearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/search/exponential-search/exponentialSearch.js b/src/algorithms/search/exponential-search/exponentialSearch.js index d2259514..af78b2c2 100644 --- a/src/algorithms/search/exponential-search/exponentialSearch.js +++ b/src/algorithms/search/exponential-search/exponentialSearch.js @@ -51,5 +51,5 @@ export default function exponentialSearch(sortedArray, seekElement, comparatorCa range *= 2; } // Call binary search for the found range. - return binarySearch(sortedArray, range/2, Math.min(range, length - 1), seekElement, comparatorCallback); + return binarySearch(sortedArray, range/2, Math.min(range, length - 1), seekElement, comparatorCallback); } \ No newline at end of file