We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ac394b commit ac537a9Copy full SHA for ac537a9
src/unique-paths/res.js
@@ -11,7 +11,7 @@ var uniquePaths = function(m, n) {
11
if (i === 0 || j === 0) {
12
list[i][j] = 1;
13
} else {
14
- list[i][j] = Math.max(list[i-1][j] + list[i][j-1]);
+ list[i][j] = list[i-1][j] + list[i][j-1];
15
}
16
17
0 commit comments