File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import { binarySearchIterative } from './binary_search'
7
7
* where the value may be present and then performing a binary search within that range.
8
8
*
9
9
* Compared with binary search, exponential search can be more convenient and advantageous
10
- * in cases where the element to be searched is closer to the beginning of the array,
11
- * thus avoiding several comparisons that would make the search more verbose.
10
+ * in cases where the element to be searched is closer to the beginning of the array,
11
+ * thus avoiding several comparisons that would make the search more verbose.
12
12
* Exponential search doubles the search time with each iteration.
13
13
*
14
14
* @param {number[] } array - sorted list of numbers
You can’t perform that action at this time.
0 commit comments