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

Commit ac537a9

Browse files
update: 62
1 parent 7ac394b commit ac537a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/unique-paths/res.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var uniquePaths = function(m, n) {
1111
if (i === 0 || j === 0) {
1212
list[i][j] = 1;
1313
} else {
14-
list[i][j] = Math.max(list[i-1][j] + list[i][j-1]);
14+
list[i][j] = list[i-1][j] + list[i][j-1];
1515
}
1616
}
1717
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /