Skip to content

Commit 28b3cd3

Browse files
Update search/binary_search.cpp
Co-authored-by: realstealthninja <[email protected]>
1 parent 2ea5e3f commit 28b3cd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

search/binary_search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* algorithm](https://en.wikipedia.org/wiki/Binary_search_algorithm)
55
* @details
66
* Binary search is a search algorithm that finds the position of a target value
7-
* within a sorted array.Just like looking for a word in dictionary, in binary search we compare the target value to the middle
7+
* within a sorted array.Just like looking for a word in a dictionary, in binary search we compare the target value to the middle
88
* element of the array. If they are not equal, then the half in which the target
99
* cannot lie is eliminated and the search continues on the remaining half,
1010
* again taking the middle element to compare to the target value, and repeating

0 commit comments

Comments
 (0)