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

@ -27,7 +27,7 @@ class BoyerMooreSearch:
def match_in_pattern(self, char):
""" finds the index of char in pattern in reverse order
Paremeters :
Parameters :
char (chr): character to be searched
Returns :
@ -43,12 +43,12 @@ class BoyerMooreSearch:
def mismatch_in_text(self, currentPos):
""" finds the index of mis-matched character in text when compared with pattern from last
Paremeters :
Parameters :
currentPos (int): current index position of text
Returns :
i (int): index of mismatched char from last in text
-1 (int): if there is no mis-match between pattern and text block
-1 (int): if there is no mismatch between pattern and text block
"""
for i in range(self.patLen - 1, -1, -1):