badkins
2021-12-24 20:48:49

Day 24


badkins
2021-12-24 20:49:05

What the heck ?!?!


badkins
2021-12-25 02:02:51

<https://github.com/lojic/LearningRacket/blob/master/advent-of-code–2021/solutions/day24/day24-cheat.rkt|A nice solution that wasn’t mine>


popa.bogdanp
2021-12-25 06:03:07

I did it half by hand, by <https://github.com/Bogdanp/aoc2021/blob/adf348eaf71aa2c69337d7f844ecefca0833147e/day24.rkt#L27-L104|compiling & optimizing the “asm”> to Racket and adding some debug output then finding a long enough prefix via reverse engineering to reduce the search space to where it was feasible to brute force. Took me a very long time, though.