Day 6, part 2. A bit brute-force, but it gets the job done.
This commit is contained in:
parent
0c96d7dded
commit
0388b57112
2 changed files with 75 additions and 21 deletions
16
2018/day06-2.go
Normal file
16
2018/day06-2.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"internal/coords"
|
||||
"internal/util"
|
||||
)
|
||||
|
||||
func main() {
|
||||
data := util.ReadInput()
|
||||
points := coords.ParsePoints(data)
|
||||
|
||||
area := coords.ComputeNearnessRegion(points, 10000)
|
||||
fmt.Println(area)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue