mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 08:16:50 +08:00
Fix grammar mistakes in JSDoc (#1127)
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
/* Ternary search is similar to binary search but it divide the sorted array
|
/* Ternary search is similar to binary search but it divides the sorted array
|
||||||
* into three parts and determine which part the key lies in. The array will
|
* into three parts and determines which part the key lies in. The array will
|
||||||
* be divided into three intervals by using two middle points, mid1 and mid2.
|
* be divided into three intervals by using two middle points, mid1 and mid2.
|
||||||
* The value of the key will first compared with the two mid points, the value
|
* The value of the key will first be compared with the two mid points, the value
|
||||||
* will be returned if there is a match. Then, if the value of the key is less
|
* will be returned if there is a match. Then, if the value of the key is less
|
||||||
* than mid1, narrow the interval to the first part. Else, if the value of the
|
* than mid1, narrow the interval to the first part. Else, if the value of the
|
||||||
* key is greater than mid2, narrow the interval to the third part. Otherwise,
|
* key is greater than mid2, narrow the interval to the third part. Otherwise,
|
||||||
|
Reference in New Issue
Block a user