Skip to content

Commit

Permalink
Changed the typographical error (TheAlgorithms#132)
Browse files Browse the repository at this point in the history
Changed the typo in line 113 and 115 regarding recursive binary search algorithm, found by a user who commented in comments.
  • Loading branch information
nandujkishor authored and sachinarora707 committed Oct 13, 2017
1 parent f9156cf commit e021179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion searches/binary_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def binary_search_by_recursion(sorted_collection, item, left, right):
return binary_search_by_recursion(sorted_collection, item, left, midpoint-1)
else:
return binary_search_by_recursion(sorted_collection, item, midpoint+1, right)

def __assert_sorted(collection):
"""Check if collection is sorted, if not - raises :py:class:`ValueError`
Expand Down

0 comments on commit e021179

Please sign in to comment.