Skip to content

My solutions for the 2024 edition of adventofcode.com written in Rust.

License

Notifications You must be signed in to change notification settings

tom-anders/Advent-Of-Code-2024

Repository files navigation

Advent of Code 2024

My solutions for the 2024 edition of Advent of Code written in Rust.

Each day, I usually go for speed, and after getting both stars will refactor the solution to be (even more) idiomatic Rust code.

Project Layout

The project uses cargo's workspace feature, each day is a separate workspace member. utils contains various helpers for things that come up a lot in AoC, including some basic math stuff (2D vector, box and grid), algorithms (bfs, dijkstra, ..) and helpers for parsing strings into data via regular expressions.

aoc_derive implements the #[aoc_main] proc_macro that implements the main() function for each day.

There's also an init_day.sh script that will download my input into a file, create the project for the day and will open the main.rs in neovim with some AoC-specific key-bindings and window layout (see aoc.lua). The scripts expects your session cookie to be in the .session file.

About

My solutions for the 2024 edition of adventofcode.com written in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published