mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-06 05:48:58 +08:00
Format JS and TS code.
This commit is contained in:
@ -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}`);
|
||||
|
Reference in New Issue
Block a user