Changed the typographical error (#132)

Changed the typo in line 113 and 115 regarding recursive binary search algorithm, found by a user who commented in comments.
This commit is contained in:
nandujkishor 2017-10-13 20:33:40 +05:30 committed by Sachin Arora
parent f9156cfb71
commit e0211794da

View File

@ -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`