Skip to content

Commit

Permalink
delete a comma in bm()
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryderry committed Dec 8, 2018
1 parent fa0e8b7 commit 68b5c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/33_bm/bm.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _move_by_good_suffix(bad_character_index: int, suffix: List[int], prefix: Li
return len(suffix)


def bm(s: str, pattern: str,) -> int:
def bm(s: str, pattern: str) -> int:
bc = _generate_bad_character_table(pattern)
prefix, suffix = _generate_good_suffix_table(pattern)
n, m = len(s), len(pattern)
Expand Down

0 comments on commit 68b5c02

Please sign in to comment.