mirror of
https://github.com/lWolvesl/leetcode.git
synced 2026-02-27 11:58:39 +08:00
3379, 3650
This commit is contained in:
11
26/01/go/3650.go
Normal file
11
26/01/go/3650.go
Normal file
@@ -0,0 +1,11 @@
|
||||
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]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user