This repository contains my solutions for the Advent of Code 2024 challenges. Each folder corresponds to a specific day's puzzle, with Python code implementing the solution.
The only dependency for running the solutions is aocd
, which makes fetching input data seamless.
You can install the aocd
library via pip:
pip install aocd
Ensure you have an Advent of Code account and are logged in. Set up your aocd token: Log in to the Advent of Code website and retrieve your session token from the browser cookies. Run the following command to set up the token for aocd:
export AOC_SESSION=<your-session-token>
Alternatively, create a file at ~/.config/aocd/token (or equivalent for your OS) and paste your session token into the file.
.
├── README.md
├── 2024/
│ ├── 01.py
│ ├── 02.py
│ ├── ...
└── requirements.txt