We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa0e8b7 commit 68b5c02Copy full SHA for 68b5c02
python/33_bm/bm.py
@@ -46,7 +46,7 @@ def _move_by_good_suffix(bad_character_index: int, suffix: List[int], prefix: Li
46
return len(suffix)
47
48
49
-def bm(s: str, pattern: str,) -> int:
+def bm(s: str, pattern: str) -> int:
50
bc = _generate_bad_character_table(pattern)
51
prefix, suffix = _generate_good_suffix_table(pattern)
52
n, m = len(s), len(pattern)
0 commit comments