We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61b1d22 commit 6d55e80Copy full SHA for 6d55e80
search/exponential_search.ts
@@ -7,8 +7,8 @@ import { binarySearchIterative } from './binary_search'
7
* where the value may be present and then performing a binary search within that range.
8
*
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.
+ * in cases where the element to be searched is closer to the beginning of the array,
+ * thus avoiding several comparisons that would make the search more verbose.
12
* Exponential search doubles the search time with each iteration.
13
14
* @param {number[]} array - sorted list of numbers
0 commit comments