Create codespell.yml (#1698)

* fixup! Format Python code with psf/black push

* Create codespell.yml

* fixup! Format Python code with psf/black push
This commit is contained in:
Christian Clauss
2020-01-18 13:24:33 +01:00
committed by GitHub
parent c01d178798
commit bfcb95b297
78 changed files with 206 additions and 188 deletions

View File

@ -15,7 +15,7 @@ def interpolation_search(sorted_collection, item):
right = len(sorted_collection) - 1
while left <= right:
# avoid devided by 0 during interpolation
# avoid divided by 0 during interpolation
if sorted_collection[left] == sorted_collection[right]:
if sorted_collection[left] == item:
return left
@ -59,7 +59,7 @@ def interpolation_search_by_recursion(sorted_collection, item, left, right):
:return: index of found item or None if item is not found
"""
# avoid devided by 0 during interpolation
# avoid divided by 0 during interpolation
if sorted_collection[left] == sorted_collection[right]:
if sorted_collection[left] == item:
return left