adventofcode/2018/day07-2.go

20 lines
259 B
Go

package main
import (
"fmt"
"internal/day07"
"internal/util"
)
func main() {
data := util.ReadInput()
// Build a tree of dependencies.
root := day07.BuildDependencyTree(data)
// Build
time := day07.SimulateConstruction(root)
fmt.Println(time)
}