Skip to content

forketyfork/aoc-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code Solutions in Rust

Build status MIT License Rust

This repository contains my solutions to Advent of Code puzzles written in Rust.

Structure

  • src/bin/ - Individual solution files for each day (e.g., 01.rs, 02.rs, etc.)
  • input/ - Input data files for each day's puzzle
  • Each solution includes both Part 1 and Part 2 of the daily challenges

Running Solutions

To run a specific day's solution:

cargo run --bin YYYY-DD

For example, to run the solution for Day 5 of 2024:

cargo run --bin 2024-05

Building and Testing

# Build all solutions
cargo build

# Run all tests
cargo test

# Check code formatting
cargo fmt --check

# Run clippy for linting
cargo clippy

About

Advent of Code solutions written in Rust

Topics

Resources

License

Stars

Watchers

Forks

Contributors