adventofcode/2018/day07-2.go

20 lines
259 B
Go
Raw Normal View History

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