Day 7.2 solution.

This commit is contained in:
Anna Rose Wiggins 2018-12-10 00:57:35 -05:00
parent 7f0bc4d9f1
commit 42cb05ba7f
No known key found for this signature in database
GPG key ID: 8D9ACA841015C59A
3 changed files with 74 additions and 0 deletions

19
2018/day07-2.go Normal file
View file

@ -0,0 +1,19 @@
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)
}