Note: This topic is to talk about Day 24 of the Advent of Code.
For general discussion about the Advent of Code 2018 and links to topics of the other days, see this topic.
Note: This topic is to talk about Day 24 of the Advent of Code.
For general discussion about the Advent of Code 2018 and links to topics of the other days, see this topic.
It was a relief that today’s puzzle was relatively straight-forward. Only a lot of details to keep straight. Then in part 2 there could be a stalemate, where neither the immune system nor the infection could win.
Here is my solution for day 24.
It runs in 3 seconds.
Here’s mine, which takes about 7 seconds.
Although both can be checked with the same condition, I’m wondering if everybody had the same case since there can be two: