It’s back! (Advent of Code)!
And you know what? Just about everything (at least in the parts of the industry that I see) may be using AI for everything and not writing code anymore… but I like to write code. It’s a fun puzzle. And this is a great chance to do so. Onwards!
I’ll be posting to github as always: jpverkamp/advent-of-code
Here are (or will be) all of my solutions:
Here’s how long each solution takes to run:
| Day | Part | Solution | Benchmark |
|---|---|---|---|
| 1 | 1 | part1 | 27.717µs ± 1.684µs |
| 1 | 1 | part1_fn | 71.92µs ± 2.176µs |
| 1 | 1 | part1_hash | 33.176µs ± 870ns |
| 1 | 1 | part1_nocopy | 21.666µs ± 517ns |
| 1 | 2 | part2 | 31.762µs ± 3.647µs |
| 1 | 2 | part2_hash | 34.736µs ± 8.167µs |
And here are my previous year’s solutions: