Skip to content

My solutions to the Advent of Code puzzles for the 2024 edition in C#.

License

Notifications You must be signed in to change notification settings

robhabraken/advent-of-code-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2024

My solutions to the Advent of Code puzzles for the 2024 edition, written in C#.

AoC Puzzle Part one Part two P1 metrics P2 metrics
Day 1: Historian Hysteria 1.1 1.2 20 LoC / 0.20 ms 24 LoC / 5.16 ms
Day 2: Red-Nosed Reports 2.1 2.2 31 LoC / 0.44 ms 43 LoC / 1.24 ms
Day 3: Mull It Over 3.1 3.2 14 LoC / 0.62 ms 23 LoC / 0.58 ms
Day 4: Ceres Search 4.1 4.2 21 LoC / 3.02 ms 10 LoC / 0.77 ms
Day 5: Print Queue 5.1 5.2 21 LoC / 1.93 ms 35 LoC / 0.76 ms
Day 6: Guard Gallivant 6.1 6.2 34 LoC / 0.09 ms 78 LoC / 250 ms
Day 7: Bridge Repair 7.1 7.2 35 LoC / 3.59 ms 45 LoC / 4.58 ms
Day 8: Resonant Collinearity 8.1 8.2 30 LoC / 0.07 ms 38 LoC / 0.26 ms
Day 9: Disk Fragmenter 9.1 9.2 44 LoC / 0.50 ms 73 LoC / 125 ms
Day 10: Hoof It 10.1 10.2 40 LoC / 2.41 ms 31 LoC / 0.67 ms
Day 11: Plutonian Pebbles 11.1 11.2 36 LoC / 14.9 ms 47 LoC / 14.8 ms
Day 12: Garden Groups 12.1 12.2 49 LoC / 1.89 ms 77 LoC / 4.79 ms
Day 13: Claw Contraption 13.1 13.2 16 LoC / 0.35 ms 19 LoC / 0.39 ms
Day 14: Restroom Redoubt 14.1 14.2 55 LoC / 0.38 ms 97 LoC / 5.11 ms
Day 15: Warehouse Woes 15.1 15.2 94 LoC / 0.84 ms 139 LoC / 1.37 ms
Day 16: Reindeer Maze 16.1 16.2 74 LoC / 14.5 ms 159 LoC / 17.2 ms
Day 17: Chronospatial Computer 17.1 17.2 88 LoC / 0.01 ms 99 LoC / 0.01 ms
Day 18: RAM Run 18.1 18.2 89 LoC / 6.16 ms 97 LoC / 9.14 ms
Day 19: Linen Layout 19.1 19.2 43 LoC / 17.8 ms 42 LoC / 17.7 ms
Day 20: Race Condition 20.1 20.2 70 LoC / 0.73 ms 68 LoC / 165 ms
Day 21: Keypad Conundrum 21.1 21.2 182 LoC / 0.04 ms 205 LoC / 0.15 ms
Day 22: Monkey Market 22.1 22.2 28 LoC / 73.9 ms 56 LoC / 362 ms
Day 23: LAN Party 23.1 23.2 40 LoC / 12.6 ms 74 LoC / 11.2 ms
Day 24: Crossed Wires 24.1 24.2 98 LoC / 1.38 ms 66 LoC / 1.42 ms
Day 25: Code Chronicle 25.1 25.2 32 LoC / 2.05 ms N/A
Total runtime 999.33503 ms

Performance metrics

Each puzzle solution is executed 100 times, excluding the time taken for reading the input file from disk and printing the answer to the console. To account for .NET startup time and potential outliers, I calculate the average (mean) execution time after removing the slowest and fastest measurement. In cases where multiple solutions are implemented for a single puzzle, the table displays the metrics for the fastest or most optimal solution.

Legend

Star Description
Solved completely by myself without any help or external input
Solved myself, involuntarily received a hint or looked up a math or coding detail
Searched online for algorithms or inspiration to solve this problem
Own implementation based on approach as seen on AoC subreddit
Wasn't able to solve this myself, implemented someone else's logic to learn from

About

My solutions to the Advent of Code puzzles for the 2024 edition in C#.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published