These are my solutions to the annual Advent of Code challenge.
- No AI. Every line in this repository was written by hand. It's not that I'm against using AI for software development (in fact, I use it heavily for my work), but in my opinion, Advent of Code is about solving problems, and it's no fun if you let some machine solve those problems for you.
- Implement everything in Rust. Because I love it!
- Find generalized solutions that work with every input.
- Avoid 3rd party dependencies (if possible and reasonable). Exceptions are rustc-hash (because it's just too fast), rayon for parallelization (only in rare cases!), and any crate necessary to do occasional terminal visualizations.
- Try to optimize performance (to the best of my knowledge, if it doesn't conflict with the other goals, and if it doesn't obscure the solution too much).
- Find clever solutions to complex problems that others might not have found. Some highlights I'm particularly proud of:
- Day 10 of 2025: While most people approached this problem using a solver (such as S3 or good_lp), I found a solution that works completely without a 3rd party dependency. I implemented a DFS in which I use heuristics to prune as many branches as possible. This is definitely not the fastest approach possible, but it gets the job done in reasonable time and is certainly quite unique. See my Reddit comment for more information.
- Day 25 of 2023: Using Brandes' algorithm to quickly calculate the betweenness centrality of graph nodes.
- Day 21 of 2023: Applying bit operations to simulate the cellular automaton, which allowed me to implement a fast and generalized solution that should work on any input (unlike most other approaches).
- Day 25 of 2018: Combining DBSCAN with a spatial index based on Morton indices. Very fast and scalable!
- Day 25 of 2017: Fast Turing machine simulation using memoized macro transitions over fixed-size blocks inspired by tape compression and the linear speedup theorem.
I've created terminal visualizations of some puzzles for fun:
If you want to visualize your own input with my code, just change into the solution's directory (e.g. cd 2025/day12) and run the following command:
cargo run --release --features=visualizeThe solutions are released under the MIT license. See the LICENSE file for more information.











