Day 18 and speedups to earlier days (#29)

This commit is contained in:
Patrick Stevens
2022-12-18 10:43:34 +00:00
committed by GitHub
parent e96d63d847
commit 88cd0c9c13
13 changed files with 2476 additions and 30 deletions

View File

@@ -246,6 +246,20 @@ module Run =
if shouldWrite then
printfn "%i" output
let day18 (partTwo : bool) (input : string) =
let day18 = StringSplitEnumerator.make '\n' input
if not partTwo then
let output = Day18.part1 day18
if shouldWrite then
printfn "%i" output
else
let output = Day18.part2 day18
if shouldWrite then
printfn "%i" output
let allRuns =
[|
day1
@@ -265,4 +279,5 @@ module Run =
day15
day16
day17
day18
|]