Skip to content

Commit a71842a

Browse files
[N-0] fix build
1 parent 100ce1d commit a71842a

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+2
-2
lines changed

src/main/java/com/fishercoder/solutions/_10.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public boolean isMatch(String s, String p) {
3232
}
3333
boolean[][] dp = new boolean[s.length() + 1][p.length() + 1];
3434
dp[0][0] = true;
35-
for (int i = 0; i < p.length(); i++) {//here's the p's length, not s's
35+
for (int i = 0; i < p.length(); i++) { //here's the p's length, not s's
3636
if (p.charAt(i) == '*' && dp[0][i - 1]) {
37-
dp[0][i + 1] = true;//here's y axis should be i+1
37+
dp[0][i + 1] = true; //here's y axis should be i+1
3838
}
3939
}
4040
for (int i = 0; i < s.length(); i++) {

0 commit comments

Comments
 (0)