Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code Solutions

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.

Elixir

Day Part #1 Performance Part #2 Performance
#01 Secret Entrance 195.9 ms ± 3.9 ms 202.6 ms ± 4.3 ms
#02 Gift Shop 1.733 s ± 0.096 s 1.661 s ± 0.027 s
#03 Lobby 203.6 ms ± 14.9 ms 202.9 ms ± 6.9 ms
#04 Printing Department 212.8 ms ± 3.2 ms 503.9 ms ± 36.7 ms
#05 Cafeteria 200.0 ms ± 3.6 ms NA
#06 Trash Compactor 203.6 ms ± 8.2 ms NA
#07 Laboratories 234.7 ms ± 9.4 ms NA
#08 Playground 456.8 ms ± 10.7 ms 470.0 ms ± 20.1 ms
#09 Movie Theater 200.0 ms ± 3.6 ms NA
#10 Light Machine 224.4 ms ± 6.4 ms NA
#11 Reactor 200.5 ms ± 4.2 ms NA
#12 Christmas Tree Farm 201.0 ms ± 3.2 ms NA

Python

Day Part #1 Performance Part #2 Performance
#01 Historian Hysteria 62.7 ms ± 9.8 ms 79.3 ms ± 12.0 ms
#02 Red-Nosed Reports 69.7 ms ± 5.7 ms 100.7 ms ± 32.7 ms
#03 Mull It Over 69.0 ms ± 7.3 ms 69.4 ms ± 7.5 ms
#04 Ceres Search 87.8 ms ± 20.9 ms 69.3 ms ± 8.0 ms
#05 Print Queue 185.7 ms ± 77.7 ms 680.6 ms ± 46.8 ms
#06 Guard Gallivant 93.6 ms ± 61.3 ms NA
#07 Bridge Repair 325.7 ms ± 63.8 ms 10.259 s ± 0.430 s
#08 Resonant Collinearity 69.6 ms ± 16.7 ms 68.1 ms ± 7.8 ms
#09 Disk Fragmenter 117 s ± 0.3 s 117 s ± 0.431 s
#10 Hoof It 93.0 ms ± 2.8 ms 93.7 ms ± 3.0 ms
#11 Plutonian Pebbles 69.2 ms ± 6.0 ms 374.6 ms ± 93.0 ms
#12 Garden Groups 93.6 ms ± 3.7 ms NA
#13 Claw Contraption 539.1 ms ± 19.2 ms 89.6 ms ± 33.7 ms
#14 Restroom Redoubt 96.7 ms ± 30.0 ms 6.258 s ± 0.555 s
#15 Warehouse Woes 761.0 ms ± 144.7 ms NA
#16 Reindeer Maze 228.5 ms ± 76.9 ms NA
#17 Chronospatial Computer 109.4 ms ± 47.2 ms NA
#18 RAM Run 109.6 ms ± 32.7 ms NA
#19 Linen Layout 702.0 ms ± 86.0 ms 1.326 s ± 0.134 s
#20 Race Condition 156.2 ms ± 64.7 ms 6.078 s ± 0.231 s
#21 Keypad Conundrum NA NA
#22 Monkey Market 1.459 s ± 0.253 s NA
#23 LAN Party 77.2 ms ± 21.9 ms 93.1 ms ± 22.4 ms
#24 Crossed Wires 81.6 ms ± 20.5 ms NA
#25 Code Chronicle 167.7 ms ± 41.4 ms NA