We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 488f040 commit 1a9fdd3Copy full SHA for 1a9fdd3
problems/kamacoder/0047.参会dijkstra朴素.md
@@ -150,7 +150,7 @@ minDist数组数值初始化为int最大值。
150
更新 minDist数组,即:源点(节点1) 到 节点2 和 节点3的距离。
151
152
* 源点到节点2的最短距离为1,小于原minDist[2]的数值max,更新minDist[2] = 1
153
-* 源点到节点3的最短距离为4,小于原minDist[3]的数值max,更新minDist[4] = 4
+* 源点到节点3的最短距离为4,小于原minDist[3]的数值max,更新minDist[3] = 4
154
155
可能有录友问:为啥和 minDist[2] 比较?
156
0 commit comments