Day 16 solution

Following the formula for part 1 was straightforward enough, but finding the pattern for part 2 and deducing the shortcut formula took me a while. That first 0 1 propagate enough that by the time we get halfway through applying the formula, it's all 0s and 1s, so sort of like an addition with a mask on what numbers we're adding.
This commit is contained in:
2022-06-13 15:23:34 -05:00
parent 788239e531
commit c788813cd2
7 changed files with 110 additions and 0 deletions

View File

@ -46,6 +46,7 @@ var dayMap = []day{
&days.Day13{},
&days.Day14{},
&days.Day15{},
&days.Day16{},
}
func main() {