AoC 2020 Day 15
Oh I accidentally did 1-6 instead of 0-5. But here's the list:
'(1 3 4 5 6 7 8 9 10 11 12 14) :/
Here's the list of the valid indices for each field:
'((14 10 8 6) (16 14 10 8 6 4 2 17 0 15 13 9 7 5 3 1) (6) (16 14 10 8 6 4 2 17 0 15 13 11 9 7 5 3 18 1) (16 14 10 8 6 4 2 17 9 7 5 1) (16 14 10 8 6 4 2 17 0 13 9 7 5 3 1) (16 14 10 8 6 4 2 17 0 15 13 9 7 5 3 18 1) (16 14 10 8 6 17 9 7 5 1) (16 14 12 10 8 6 4 2 17 0 15 13 11 9 7 5 3 18 1) (16 14 10 8 6 4 2 17 0 9 7 5 3 1) (16 14 10 8 6 2 17 9 7 5 1) (16 14 10 8 6 4 2 17 9 7 5 3 1) (16 14 12 10 8 6 4 19 2 17 0 15 13 11 9 7 5 3 18 1) (14 10 8 6 17 7) (16 14 10 8 6 17 9 7 5) (16 14 10 8 6 17 9 7) (14 10 8 6 7) (10 6) (10 8 6) (16 14 10 8 6 17 7))
I guess I'll have to do some constraint-solving...
AoC 2020 Day 16
https://github.com/ionathanch/adventofcode-2020/blob/main/src/16.rkt
Gross. Disgusting. Absolutely abhorrent
AoC 2020 Day 16
I've decided not to use graphing
The part of the code the max bipartite matching would replace is only seven lines anyway so I don't think the solution would be any more concise
It's already a short enough solution really and even switching from using mutable vectors and sets to lists only it still runs pretty quick
I don't think it would be worth it
AoC 2020 Day 19
whew
https://github.com/ionathanch/adventofcode-2020/blob/main/src/19.rkt
it is done
I'm so tired
AoC 2020 Day 19
I'm pleased with my solution... now that I've found it lmao
I was so sure in the beginning that I was doing it the very bad no good way and should've used a graph or smth but as it turns out I can indeed just generate all of the strings that the rules produce (at least, for rules 42 and 31, which were the only ones I needed)
re: AoC 2020 Day 20
@nonphatic oh god