adventofcode/2018/day07-2.go

20 lines
256 B
Go
Raw Normal View History

2018-12-10 05:57:35 +00:00
package main
import (
"fmt"
"internal/tree"
"internal/util"
)
func main() {
data := util.ReadInput()
// Build a tree of dependencies.
root := tree.BuildDependencyTree(data)
// Build
time := tree.SimulateConstruction(root)
fmt.Println(time)
}