Solutions for Advent of Code puzzles.
Written in several different languages, based (mostly) on what I felt like using that day and (partly) on what I thought was the best tool for solving a particular puzzle.
NOTE: Some of the solutions are of rather poor quality. Basically, as soon as I get the right answer, I drop the code and don't spend any more time on it. As such, some of the stuff you see here might quite literally be broken, as in "it worked with my input" – but might fail with yours.
Day | 2023 | 2022 | 2021 | 2020 | 2019 | 2018 | 2017 |
---|---|---|---|---|---|---|---|
1 | |||||||
1½ | |||||||
2 | |||||||
2½ | |||||||
3 | |||||||
3½ | |||||||
4 | |||||||
4½ | |||||||
5 | |||||||
5½ | |||||||
6 | |||||||
6½ | |||||||
7 | |||||||
7½ | |||||||
8 | |||||||
8½ | |||||||
9 | |||||||
9½ | |||||||
10 | |||||||
10½ | |||||||
11 | |||||||
11½ | |||||||
12 | |||||||
12½ | |||||||
13 | |||||||
13½ | |||||||
14 | |||||||
14½ | |||||||
15 | |||||||
15½ | |||||||
16 | |||||||
16½ | |||||||
17 | |||||||
17½ | |||||||
18 | |||||||
18½ | |||||||
19 | |||||||
19½ | |||||||
20 | |||||||
20½ | |||||||
21 | |||||||
21½ | |||||||
22 | |||||||
22½ | |||||||
23 | |||||||
23½ | |||||||
24 | |||||||
24½ | |||||||
25 |
Language | Solutions | Percentage | Lines of code | Percentage |
---|---|---|---|---|
C | 61 | 24.8% | 4.7k | 27.9% |
PHP | 55 | 22.4% | 3.1k | 18.2% |
Rust | 31 | 12.6% | 2.8k | 16.6% |
Bash | 31 | 12.6% | 1.2k | 7.1% |
Awful | 17 | 6.9% | 1.1k | 6.3% |
Pascal | 16 | 6.5% | 1.6k | 9.5% |
Python | 14 | 5.7% | 1.2k | 7.0% |
AWK | 6 | 2.4% | 103 | 0.6% |
Go | 4 | 1.6% | 475 | 2.8% |
Java | 4 | 1.6% | 139 | 0.8% |
C♯ | 2 | 0.8% | 288 | 1.7% |
JavaScript | 2 | 0.8% | 75 | 0.4% |
SurgeScript | 2 | 0.8% | 74 | 0.4% |
C++ | 1 | 0.4% | 87 | 0.5% |
Total | 246 | — | 16.8k | — |