Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit19b62b4

Browse files
correct typo
1 parent8ee888d commit19b62b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎MEDIUM/src/medium/UniquePaths.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public int uniquePaths_merged_for_loop(int m, int n) {
3636
int[][]dp =newint[m][n];
3737
for(inti =0;i <m;i++){
3838
for(intj =0;j <n;j++){
39-
if(i ==0 ||j ==0)dp[i][j] =0;
39+
if(i ==0 ||j ==0)dp[i][j] =1;
4040
elsedp[i][j] =dp[i-1][j] +dp[i][j-1];
4141
}
4242
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp