Welcome to my solutions for Advent of Code [Year]. This repository contains my attempts at solving the daily programming puzzles throughout the event.
Advent of Code is an annual programming challenge that runs from December 1 to December 25. Each day, a new problem is released, and participants earn stars ⭐ for solving the challenges.
The repository is organized by days, with each day's solution in its respective folder:
📂 advent-of-code-[year] ├── 📁 day01 │ ├── input.txt │ ├── part1.py │ ├── part2.cpp ├── 📁 day02 │ ├── input.txt │ ├── part1.cpp │ ├── part2.py ...
input.txt
: The unique input for that day's challenge.part1.py
/part2.cpp
: Solutions for part 1 and part 2 of the problem.
-
Clone this repository:
git clone https://github.com/yourusername/advent-of-code-[year].git cd advent-of-code-[year]
-
Navigate to the day you want to run:
cd day01
-
Run the solution script:
- For Python:
python part1.py
- For C++ (after compiling):
g++ part2.cpp -o part2 && ./part2
- For Python:
- Python
- C++