Day 11 - Solutions
Well, I left it running all night and still didn't have an answer after 8 hours+. I must be missing something obvious.
Day 11 notebook: https://narimiran.github.io/aoc2025/src/day11/ A much easier one than the last two days.
OK, here's my day 11: https://github.com/rjray/advent-2025-clojure/blob/master/src/advent_of_code/day11.clj
Big thanks to @narimiran for some help-- I thought the algorithm was wonky, but it turns out that I wasn't actually getting any benefit from the use of memoize due to how I was calling things. Fixed that and part 2 finished in ~17ms.
@rjray Same - I ended up using a global graph to get around it to solve the problem but then read @narimiran's writeup and fixed mine!
https://github.com/genmeblog/advent-of-code/blob/master/src/advent_of_code_2025/day11.clj
That was fun! Good difficulty scaling today unlike yesterday lolcry Part 1 reached for good ol' https://github.com/minikomi/advent-of-code/blob/42654b8719ab0134b728e20c778e765c449f3e04/2025/src/day11.clj#L36-L49and was fine, part 2 blew that approach way out of the water so had to think back from leaves and how to skip branches ...
Dammit, I have part 1 but part 2 was taking too long. Rewrote it with memoize and it's STILL taking too long. Gonna sleep on this.
@rjray memoize it the way to go. But you also need to do <redacted, way too spoilerish> and then it is instant.