mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 18:38:39 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
8c5aef0497
commit
475b5b5184
@ -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 = [[False for _ in range(n + 1)] for _ in range(m + 1)]
|
||||||
dp[0][0] = True
|
dp[0][0] = True
|
||||||
|
|
||||||
|
|
||||||
for j in range(1, n + 1):
|
for j in range(1, n + 1):
|
||||||
dp[0][j] = pattern[j - 1] == "*" and dp[0][j - 2]
|
dp[0][j] = pattern[j - 1] == "*" and dp[0][j - 2]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user