Skip to content

Commit 1a5616c

Browse files
Update boyer_moore_search.py
1 parent 95d2efa commit 1a5616c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

strings/boyer_moore_search.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@
1818
m=length of pattern string
1919
"""
2020

21-
2221
class BoyerMooreSearch:
2322
"""
2423
Example usage:
2524
26-
text = "ABAABA"
27-
pattern = "AB"
28-
bms = BoyerMooreSearch(text, pattern)
25+
bms = BoyerMooreSearch(text="ABAABA", pattern="AB")
2926
positions = bms.bad_character_heuristic()
3027
3128
where 'positions' contain the locations where the pattern was matched.

0 commit comments

Comments
 (0)