auto commit
This commit is contained in:
parent
3b2999d9d9
commit
034a3adb18
|
@ -878,9 +878,9 @@ p.charAt(j) == '.' : dp[i][j] = dp[i-1][j-1];
|
|||
p.charAt(j) == '*' :
|
||||
p.charAt(j-1) != s.charAt(i) : dp[i][j] = dp[i][j-2] // in this case, a* only counts as empty
|
||||
p.charAt(j-1) == s.charAt(i) or p.charAt(i-1) == '.':
|
||||
dp[i][j] = dp[i-1][j] // in this case, a* counts as multiple a
|
||||
or dp[i][j] = dp[i][j-1] // in this case, a* counts as single a
|
||||
or dp[i][j] = dp[i][j-2] // in this case, a* counts as empty
|
||||
dp[i][j] = dp[i-1][j] // in this case, a* counts as multiple a
|
||||
or dp[i][j] = dp[i][j-1] // in this case, a* counts as single a
|
||||
or dp[i][j] = dp[i][j-2] // in this case, a* counts as empty
|
||||
```
|
||||
|
||||
```java
|
||||
|
|
Loading…
Reference in New Issue
Block a user