Advent of Code Solutions

May 30, 2026 · View on GitHub

aoc 2024 2025 StandWithUkraine

Overview

Advent of Code is an Advent calendar of small programming puzzles for a variety of skill levels that can be solved in any programming language you like. People use them for interview prep, company training, university coursework, practice problems, a speed contest, or to challenge each other.

You don't need a computer science background to participate - just a little programming knowledge and some problem-solving skills will get you pretty far. Nor do you need a fancy computer; every problem has a solution that completes in at most 15 seconds on ten-year-old hardware.

@Eric Wastl

Benchmarking

Performance measured with Hyperfine (3 warm-ups, file I/O and parsing included). Input used is the real puzzle input, not the example.

2025

Elixir

DayPart #1 PerformancePart #2 Performance
#01 Secret Entrance195.9 ms ± 3.9 ms202.6 ms ± 4.3 ms
#02 Gift Shop1.733 s ± 0.096 s1.661 s ± 0.027 s
#03 Lobby203.6 ms ± 14.9 ms202.9 ms ± 6.9 ms
#04 Printing Department212.8 ms ± 3.2 ms503.9 ms ± 36.7 ms
#05 Cafeteria200.0 ms ± 3.6 msNA
#06 Trash Compactor203.6 ms ± 8.2 msNA
#07 Laboratories234.7 ms ± 9.4 msNA
#08 Playground456.8 ms ± 10.7 ms470.0 ms ± 20.1 ms
#09 Movie Theater200.0 ms ± 3.6 msNA
#10 Light Machine224.4 ms ± 6.4 msNA
#11 Reactor200.5 ms ± 4.2 msNA
#12 Christmas Tree Farm201.0 ms ± 3.2 msNA

2024

Python

DayPart #1 PerformancePart #2 Performance
#01 Historian Hysteria62.7 ms ± 9.8 ms79.3 ms ± 12.0 ms
#02 Red-Nosed Reports69.7 ms ± 5.7 ms100.7 ms ± 32.7 ms
#03 Mull It Over69.0 ms ± 7.3 ms69.4 ms ± 7.5 ms
#04 Ceres Search87.8 ms ± 20.9 ms69.3 ms ± 8.0 ms
#05 Print Queue185.7 ms ± 77.7 ms680.6 ms ± 46.8 ms
#06 Guard Gallivant93.6 ms ± 61.3 msNA
#07 Bridge Repair325.7 ms ± 63.8 ms10.259 s ± 0.430 s
#08 Resonant Collinearity69.6 ms ± 16.7 ms68.1 ms ± 7.8 ms
#09 Disk Fragmenter117 s ± 0.3 s117 s ± 0.431 s
#10 Hoof It93.0 ms ± 2.8 ms93.7 ms ± 3.0 ms
#11 Plutonian Pebbles69.2 ms ± 6.0 ms374.6 ms ± 93.0 ms
#12 Garden Groups93.6 ms ± 3.7 msNA
#13 Claw Contraption539.1 ms ± 19.2 ms89.6 ms ± 33.7 ms
#14 Restroom Redoubt96.7 ms ± 30.0 ms6.258 s ± 0.555 s
#15 Warehouse Woes761.0 ms ± 144.7 msNA
#16 Reindeer Maze228.5 ms ± 76.9 msNA
#17 Chronospatial Computer109.4 ms ± 47.2 msNA
#18 RAM Run109.6 ms ± 32.7 msNA
#19 Linen Layout702.0 ms ± 86.0 ms1.326 s ± 0.134 s
#20 Race Condition156.2 ms ± 64.7 ms6.078 s ± 0.231 s
#21 Keypad ConundrumNANA
#22 Monkey Market1.459 s ± 0.253 sNA
#23 LAN Party77.2 ms ± 21.9 ms93.1 ms ± 22.4 ms
#24 Crossed Wires81.6 ms ± 20.5 msNA
#25 Code Chronicle167.7 ms ± 41.4 msNA