Skip to content

Commit e021179

Browse files
nandujkishorsachinarora707
authored andcommitted
Changed the typographical error (TheAlgorithms#132)
Changed the typo in line 113 and 115 regarding recursive binary search algorithm, found by a user who commented in comments.
1 parent f9156cf commit e021179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

searches/binary_search.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def binary_search_by_recursion(sorted_collection, item, left, right):
113113
return binary_search_by_recursion(sorted_collection, item, left, midpoint-1)
114114
else:
115115
return binary_search_by_recursion(sorted_collection, item, midpoint+1, right)
116-
116+
117117
def __assert_sorted(collection):
118118
"""Check if collection is sorted, if not - raises :py:class:`ValueError`
119119

0 commit comments

Comments
 (0)