My solutions for the AoC 2024 challenges, written in Python.
🎄 🎄 🎄
Day | 🧩 Puzzle | 🐍 Solution | ⏳ Duration A | ⏳ Duration B |
---|---|---|---|---|
1 | Historian Hysteria | day1.py | - | - |
2 | Red-Nosed Reports | day2.py | - | - |
3 | Mull It Over | day3.py | - | - |
4 | Ceres Search | day4.py | 13 ms | 59 ms |
5 | Print Queue | day5.py | 14 ms | 62 ms |
6 | Guard Gallivant | day6.py | - | 39.193 ms |
7 | Bridge Repair | day7.py | 119 ms | 12.479 ms |
8 | Resonant Collinearity | day8.py | - | - |
9 | Disk Fragmenter | day9.py | - | 4.989 ms |
10 | Hoof It | day10.py | 12 ms | 12 ms |
11 | Plutonian Pebbles | day11.py | - | 84 ms |
12 | Garden Groups | day12.py | 135 ms | 230 ms |
13 | Claw Contraption | day13.py | - | - |
14 | Restroom Redoubt | day14.py | 11 ms | 4.306 ms |
15 | Warehouse Woes | day15.py | 12 ms | 41 ms |
16 | Reindeer Maze | day16.py | 907 ms | 974 ms |
17 | Chronospatial Computer | |||
18 | RAM Run | day18.py | 17 ms | 45.368 ms |
19 | Linen Layout | day19.py | 105 ms | 346 ms |
20 | Race Condition | day20.py | 84 ms | 2.331 ms |
21 | Keypad Conundrum | day21.py | - | - |
22 | Monkey Market | day22.py | 2.051 ms | 2.219 ms |
Timings are measured on my computer in a non-scientific way. Empty durations indicate a runtime of less than ten milliseconds. Bold durations indicate a runtime of more than one minute.
Package requirements are specified in the requirements.txt file.
pip install -r requirements.txt
You should install the pre-commit hooks and its dependencies to format the code before committing.
pip install pre-commit ruff
pre-commit install