Skip to content

Commit

Permalink
优化表达
Browse files Browse the repository at this point in the history
  • Loading branch information
youngyangyang04 committed Dec 11, 2024
1 parent ac6dfbc commit e7f9678
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion problems/kamacoder/0097.小明逛公园.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ Floyd算法核心思想是动态规划。

这里我们用 grid数组来存图,那就把dp数组命名为 grid。

grid[i][j][k] = m,表示 节点i 到 节点j 以[1...k] 集合为中间节点的最短距离为m。
grid[i][j][k] = m,表示 **节点i 到 节点j 以[1...k] 集合中的一个节点为中间节点的最短距离为m**


可能有录友会想,凭什么就这么定义呢?

Expand Down

0 comments on commit e7f9678

Please sign in to comment.