mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-12-19 06:58:15 +08:00
chore: update spelling mistakes (#1790)
* chore: update spelling mistakes * chore: add spellignore * chore: update sp mistakes
This commit is contained in:
@@ -30,7 +30,7 @@ const uniquePaths = (m, n) => {
|
||||
for (let j = 1; j < m; j++) {
|
||||
// paths[j] in RHS represents the cell value stored above the current cell
|
||||
// paths[j-1] in RHS represents the cell value stored to the left of the current cell
|
||||
// paths [j] on the LHS represents the number of distinct pathways to the cell (i,j)
|
||||
// paths [j] on the LHS represents the number of distinct pathways to the cell (i, j)
|
||||
paths[j] = paths[j - 1] + paths[j]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user