Skip to content

My Rust solutions to the Advent of Code 2024

Notifications You must be signed in to change notification settings

TomPlanche/aoc-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2024

        .
\_____)\_____
/--v____ __`< My Rust solutions to the Advent of Code 2024 challenges
    )/
    '

Overview

This repository contains my solutions to the Advent of Code 2024 challenges, implemented in Rust.

Project Structure

  • src/bin/: Contains the daily challenge solutions
  • src/lib.rs: Common utilities and helper functions
  • src/points.rs: Point-related utilities for geometric calculations
  • data/inputs/: Input files for each day's challenge (not included in repository)

Solutions

Day Part 1 Part 2
Day 1 62.79µs 79.17µs
Day 2 176.54µs 371.67µs
Day 3 2.40ms 3.34ms
Day 4 6.48ms 1.40ms
Day 5 4.01ms 17.74ms
Day 6 2.11ms 30.65s
Day 7 72.25ms 638.08ms
Day 8 42.92µs 80.25µs
Day 9 614.29µs 482.33µs
Day 10 873.50µs 846.79µs
Day 11 364.83µs 21.11ms
Day 12 2.12ms 9.39ms
Day 13 85.04ms 66.92ms
Day 14 71.84ms 55.64ms
Day 15 372.83µs 453.42µs
Day 16 743.59ms 672.50ms
Day 17 577.62µs 140.04µs
Day 18 810.21µs 1.37s
Day 19 2.62ms 39.50ms
Day 20 8.46ms 11.12ms
Day 21 93.79µs 247.75µs
Day 22 7.81ms 110.09ms
Day 23 9.51ms 29.86ms
Day 24 45.57ms 4.41ms
Day 25 622.08µs MERRY CHRISTMAS!

Running the Solutions

To run a specific day's solution:

cargo run --release --bin day_01

To run a specific day's solution tests:

cargo test --bin day_01

To run all tests:

cargo test

License

This project is open source and available under the MIT License.

About

My Rust solutions to the Advent of Code 2024

Resources

Stars

Watchers

Forks

Languages