Skip to content

Commit

Permalink
fix(shortest-path.md): fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
lingkerio authored Dec 11, 2024
1 parent 03c4a14 commit 11656f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/graph/shortest-path.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ author: du33169, lingkerio, Taoran-01
for (k = 1; k <= n; k++) {
for (x = 1; x <= n; x++) {
for (y = 1; y <= n; y++) {
f[k][x][y] = min(f[k - 1][x][y], f[k - 1][x][k] + f[k - 1][k][y]); 
f[k][x][y] = min(f[k - 1][x][y], f[k - 1][x][k] + f[k - 1][k][y]);

}
}
}
Expand Down

0 comments on commit 11656f1

Please sign in to comment.