Solutions for Advent of Code puzzles in multiple languages:
- Python
- Rust
- Wolfram Language (just for fun)
.
├── 01/
│ ├── python/
│ │ └── solution.py
│ ├── rust/
│ │ ├── Cargo.toml
│ │ └── src/
│ │ └── main.rs
│ └── example.txt
├── 02/
│ └── ...
└── README.md
Naming convention: day folders have always 2 digits (e.g., 2024/09/python
).
cd <day>/python
python solution.py input.txt # or example.txt
cd <day>/rust
cargo run -- input.txt # or example.txt
Python's tests can be run with pytest test_solution.py
in each day folder.
- Setup Rust tests
- 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