Skip to content

jsgonsette/AdventOfCode2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My solutions for the Advent of Code 2024 puzzles, in Rust

AoC in Rust

Usage

  1. The application expects your input files to be in the ./input/2024 directory. Each file must be named according to the day number: 01.txt, .. 25.txt.
  2. There is only one binary to compile, that invokes all the daily puzzles in sequence (see ./src/main.rs )

Performance

I focus on code readability and usability first, instead of seeking for performance at all cost. As such, this code is well documented and should be very understandable. Here are the results I get to solve the two parts of the problems:

All benchmarks are run on an AMD Ryzen 9 5900X, single thread

Day Puzzle Code Perf. (ms)
01 Historian Hysteria day_01.rs 0.166
02 Red-Nosed Reports day_02.rs 0.280
03 Mull It Over day_03.rs 0.097
04 Ceres Search Hysteria day_04.rs 0.288
05 Print Queue day_05.rs 2.692
06 Guard Gallivant day_06.rs 82.10
07 Bridge Repair day_07.rs 18.79
08 Resonant Collinearity day_08.rs 0.102
09 Disk Fragmenter day_09.rs 6.279
10 Hoof It day_10.rs 0.908
11 Plutonian Pebbles day_11.rs 15.22
12 Garden Groups day_12.rs 2.188
13 Claw Contraption day_13.rs 1.945
14 Restroom Redoubt day_14.rs 32.29
15 Warehouse Woes day_15.rs 1.751
16 Reindeer Maze day_16.rs 10.20
17 Chronospatial Computer day_17.rs 0.079
18 RAM Run day_18.rs 6.627
19 Linen Layout day_19.rs 21.81
20 Race Condition day_20.rs 54.94
21 Keypad Conundrum day_21.rs 0.171
22 Monkey Market day_22.rs 332.7
23 LAN Party day_23.rs 6.377
24 Crossed Wires day_24.rs 0.328
25 Code Chronicle day_25.rs 0.272

About

Advent of Code, in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages