Skip to content

Commit e43a10e

Browse files
Update boyer_moore_search.py
1 parent b0cdc8d commit e43a10e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

strings/boyer_moore_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def mismatch_in_text(self, current_pos: int) -> int:
6666
i (int): index of mismatched char from last in text
6767
-1 (int): if there is no mismatch between pattern and text block
6868
69-
>>> bms = BoyerMooreSearch("ABAABA", "AB")
69+
>>> bms = BoyerMooreSearch(text="ABAABA", pattern="AB")
7070
>>> bms.mismatch_in_text(2)
7171
3
7272
"""
@@ -80,7 +80,7 @@ def bad_character_heuristic(self) -> list[int]:
8080
"""
8181
Finds the positions of the pattern location.
8282
83-
>>> bms = BoyerMooreSearch("ABAABA", "AB")
83+
>>> bms = BoyerMooreSearch(text="ABAABA", pattern="AB")
8484
>>> bms.bad_character_heuristic()
8585
[0, 3]
8686
"""

0 commit comments

Comments
 (0)