Format JS and TS code.

This commit is contained in:
krahets
2023-09-02 23:07:47 +08:00
parent f96f583771
commit 978857570f
35 changed files with 75 additions and 74 deletions

View File

@ -98,7 +98,7 @@ const grid = [
[2, 2, 4, 2],
[5, 3, 2, 1],
[4, 3, 5, 2],
]
];
const n = grid.length,
m = grid[0].length;
// 暴力搜索
@ -118,4 +118,4 @@ console.log(`从左上角到右下角的最小路径和为 ${res}`);
// 状态压缩后的动态规划
res = minPathSumDPComp(grid);
console.log(`从左上角到右下角的最小路径和为 ${res}`);
console.log(`从左上角到右下角的最小路径和为 ${res}`);