[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-08-14 05:32:56 +00:00
parent 8c5aef0497
commit 475b5b5184

View File

@ -74,7 +74,6 @@ def dp_match(text: str, pattern: str) -> bool:
dp = [[False for _ in range(n + 1)] for _ in range(m + 1)]
dp[0][0] = True
for j in range(1, n + 1):
dp[0][j] = pattern[j - 1] == "*" and dp[0][j - 2]