Skip to content

edoardob90/aoc2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2024 🎄🎅

Solutions for Advent of Code puzzles in multiple languages:

  • Python
  • Rust
  • Wolfram Language (just for fun)

Project Structure

.
├── 01/
│   ├── python/
│   │   └── solution.py
│   ├── rust/
│   │   ├── Cargo.toml
│   │   └── src/
│   │       └── main.rs
│   └── example.txt
├── 02/
│   └── ...
└── README.md

Running Solutions

Naming convention: day folders have always 2 digits (e.g., 2024/09/python).

Python

cd <day>/python
python solution.py input.txt  # or example.txt

Rust

cd <day>/rust
cargo run -- input.txt # or example.txt

Running Tests

Python's tests can be run with pytest test_solution.py in each day folder.

  • Setup Rust tests

Implementation Notes

  • Solutions aim to use standard libraries when possible
  • Each solution includes tests using the example data from the puzzle
  • Input files and puzzle texts are not included due to Advent of Code's copyright

About

Advent of Code, 2024 edition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages