We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28fdf60 commit cb57da0Copy full SHA for cb57da0
algorithms/searching/bmh_search.py
@@ -55,7 +55,7 @@ def search(text, pattern):
55
pattern_index = pattern_length - 1
56
text_index = search_index
57
while text_index >= 0 and \
58
- text[text_index] == pattern[pattern_index]:
+ text[text_index] == pattern[pattern_index]:
59
pattern_index -= 1
60
text_index -= 1
61
if pattern_index == -1:
0 commit comments