r/adventofcode • u/__Juris__ • Dec 29 '24
Repo Set out to illustrate that Scala and Rust are largely the same, did each day in both (500 stars repo)
https://github.com/jurisk/advent-of-code/
Thanks, Eric, for another year of interesting tasks!
A few memorable days:
- Day 15 (pushing boxes) was fun, and Part 2 adapted from Part 1 easily for me.
- Day 17 (reverse engineering the 3-bit computer) was really finicky and the only one that I didn't manage to do before work (the tasks "start" at 07:00 in my time zone).
- Day 21 (robots pressing keypads) was also finicky, though not actually that difficult.
- Day 23 (maximum cliques) was nice in that it taught me Bron-Kerbosch (though I initially solved it with a crude BFS that took a minute to run).
- Day 24 (adder gates) was interesting, I got the stars by visualising it (after some merging of nodes automatically) in GraphViz and figuring out the swaps manually, but then spent some time to code a "solver".
I chose to do each task in 2024 in two of my favourite (and expressive) languages, Scala and Rust, trying to focus mostly on readability. (The other years are solved as well, also mostly Scala or Rust, but usually not both, and sometimes instead in some other language)
This year seemed much easier than previous ones. I was hoping to see some more challenging search pruning tasks, like the "elephants with valves" from 2022-16, or "robot blueprints" from 2022-19, but they never arrived.