Welcome to my Advent of Code 2024 repository! Here, you'll find my solutions to the daily programming puzzles from Advent of Code. Each puzzle is an exciting challenge designed to test and improve your problem-solving and coding skills.
Advent of Code is an annual set of Christmas-themed programming challenges. Starting from December 1st, a new problem is released every day until December 25th. Participants from around the world solve these problems in the programming language of their choice. It's a fun and educational way to:
- Sharpen coding skills
- Learn new techniques and algorithms
- Engage in a global coding community
- Celebrate the holiday season with a coding twist!
Each day's solution is written in Python and stored in its respective directory. If you'd like to run the code for a specific day's problem, follow the steps below:
-
Python 3.8 or later must be installed on your system.
Download Python -
(Optional) Install the required dependencies using
pip
. Some days may use additional libraries.
pip install -r requirements.txt
-
Clone the repository:
git clone https://github.com/your-username/advent-of-code-2024.git cd advent-of-code-2024
-
Navigate to the day's folder:
Each dayβs solution is stored in a folder nameddayXX
, whereXX
is the day number (e.g.,day01
,day02
).cd day01
-
Run the solution script:
The puzzle input is usually required. Place the input file in the same directory as the script, namedpuzzle_input.txt
.python day01_solution.py
Replace
day01_solution.py
with the appropriate script for the day you wish to run. -
Output:
The solution output will be displayed in the console.
advent-of-code-2024/
βββ day01/
β βββ day01_solution.py
β βββ puzzle_input.txt
βββ day02/
β βββ day02_solution.py
β βββ puzzle_input.txt
βββ requirements.txt
βββ README.md
dayXX/
: Contains the solution script, input file, and any notes for a specific day.requirements.txt
: Lists any Python dependencies required for some solutions.README.md
: You're reading it!
Feel free to fork the repository and submit pull requests with your own solutions or optimizations. Contributions are always welcome!
A huge thanks to Eric Wastl for creating and maintaining Advent of Code, as well as the incredible community of coders who make it such an enjoyable event every year!