Welcome to my Advent of Code 2024 solutions repository! 🎅✨ Advent of Code is an annual coding challenge during December that brings together developers from all over the world. Each day, a new problem is unlocked, with fun stories and tricky puzzles to solve!
The solutions are organized by day, with each day having its own folder:
src/
├── day_01/
│ ├── input.txt # Input data for the puzzle
│ ├── part_1.py # Solution for Part 1
│ ├── part_1.md # Task for Part 1
│ ├── part_2.py # Solution for Part 2
│ └── part_2.md # Task for Part 2
├── day_02/
│ └── ... # Same structure for other days
...
Each puzzle is linked for convenience:
| Day | Title | Part 1 Solution | Part 2 Solution |
|---|---|---|---|
| 1 | Historian Hysteria | Code | Code |
| 2 | Red-Nosed Reports | Code | Code |
| 3 | Mull It Over | Code | Code |
| 4 | Ceres Search | Code | Code |
| 5 | Print Queue | Code | Code |
| 6 | Guard Gallivant | Code | Code |
| 7 | Bridge Repair | Code | Code |
| 8 | Resonant Collinearity | Code | Code |
| 9 | Disk Fragmenter | Code | Code |
| 10 | Hoof It | Code | Code |
| 11 | Plutonian Pebbles | Code | Code |
| 12 | Garden Groups | Code | Code |
| 13 | Claw Contraption | Code | Code |
| 14 | Restroom Redoubt | Code | Code |
| 15 | Warehouse Woes | Code | Code |
| 18 | RAM Run | Code | Code |
| 19 | Linen Layout | Code | Code |
| 20 | Race Condition | Code | Code |
| 21 | Keypad Conundrum | Code | Code |
| 22 | Monkey Market | Code | Code |
| ... | ... | ... | ... |
To run a solution for a specific day:
-
Clone the repository:
git clone https://github.com/Yuliashaaa/aoc_2024.git cd aoc-2024 -
Make sure you have Python 3.13 installed
-
Navigate to the day's folder:
cd src/day_01 -
Run the solution script:
python part_1.py
This repository uses the following tools to keep code clean and efficient:
- Black – Code formatter
- Ruff – Linter for Python
- Pre-commit – Enforces consistent code style
- PDM – For dependency management
- Sharpen your coding skills
- Learn new algorithms and data structures
- Have fun solving puzzles while competing with a global community of developers
If you’d like to suggest improvements or find any bugs in the solutions, feel free to:
- Fork this repository
- Create a branch with your changes
- Open a pull request
Advent of Code is created by Eric Wastl. Check out the official website at adventofcode.com
Enjoy the puzzles and happy coding! 🎄✨