Skip to content

Commit ac537a9

Browse files
committed
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

+1-1
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)