This commit is contained in:
2026-03-05 11:21:54 +08:00
parent 035120f931
commit ed9ac364a8
6 changed files with 22 additions and 14 deletions
-11
View File
@@ -1,11 +0,0 @@
package A
func minCost(n int, edges [][]int) int {
edgeM := make([][]int, n)
for i := 0; i < n; i++ {
edgeM[i] = make([]int, n)
}
for _, e := range edges {
edgeM[e[0]][e[1]] = e[2]
}
}