This is my personal repo for Advent of Code 2024 solutions.
I used this year as a chance to brush up on my Kotlin. Though the AOC challenges aren't always the perfect demonstration for many Kotlin features -- which shine most in larger codebases with asynchronous work -- it was definitely an interesting, fun, and fairly efficient way to solve these challenges.
You can find the code for each day under app/src/main/kotlin
, with unit tests in
the corresponding directories under app/src/test/kotlin
. Keep in mind that some of
the code does contain spoilers for the solutions!
The runtimes for each day are listed below (parts 1 & 2 combined, as measured on my computer):
Day | Runtime (ms) |
---|---|
1 | 38 |
2 | 27 |
3 | 29 |
4 | 16 |
5 | 67 |
6 | 1425 |
7 | 35 |
8 | 32 |
9 | 62 |
10 | 34 |
11 | 72 |
12 | 238 |
13 | 37 |
14 | 241 |
15 | 69 |
16 | 153 |
17 | 32 |
18 | 2566 |
19 | 102 |
20 | 2340 |
21 | 68 |
22 | 564 |
23 | 16342 |
24 | 66 |
25 | 41 |
Total | 24696 |
Mean | 988 |
Median | 67 |