Welcome to my Advent of Code repository! This repository contains my solutions to the Advent of Code challenges, an annual set of Christmas-themed programming puzzles released daily from December 1st to December 25th.
Advent of Code is a fun way to improve problem-solving skills, learn new algorithms, and challenge yourself with daily puzzles.
The project is organized by year and day. Each day's puzzle has its own folder containing the input data, solution, and any related files.
advent-of-code/
├── 2024/ # Solutions in C++
│ ├── day1/
│ │ ├── input_data
│ │ └── <solution>.cpp
│ ├── day2/
│ │ ├── input_data
│ │ └── <solution>.cpp
│ └── ...
├── 2023/ # Solutions in Bash
│ ├── day1/
│ │ ├── input_data
| | |── test_data
│ │ └── <solution>.sh
│ └── ...
└── README.md
To run a specific day's solution, follow these instructions:
-
Clone the repository:
git clone https://github.com/david-1711/advent-of-code.git cd advent-of-code
-
Navigate to the desired day:
cd 2024/day1
-
Compile and run the C++ solution:
g++ -o solution solution.cpp ./solution input_data
Note: Ensure you have a C++ compiler (like
g++
) installed on your system. You can also open 2024/ workspace in VS Code and use build tasks to compile the code.
-
Clone the repository:
git clone https://github.com/david-1711/advent-of-code.git cd advent-of-code
-
Navigate to the desired day:
cd 2023/day1
-
Run the Bash script:
./solution.sh
Note: Ensure you have a Bash shell available (typically pre-installed on Linux and macOS).
- Languages: Bash, C++
- Development Tools: VS Code
Here’s a quick look at the progress for each year's puzzles.
Day | Part 1 | Part 2 | Puzzle | Solution |
---|---|---|---|---|
1 | ✅ | ✅ | Day 1: Historian Hysteria | Solution |
2 | ✅ | ✅ | Day 2: Red-Nosed Reports | Solution |
3 | ✅ | ✅ | Day 3: Mull It Over | Solution |
4 | ✅ | ✅ | Day 4: Ceres Search | Solution |
5 | ✅ | ✅ | Day 5: Print Queue | Solution |
6 | ✅ | ✅ | Day 6: Guard Gallivant | Solution |
7 | ✅ | ✅ | Day 7: Bridge Repair | Solution |
8 | ✅ | ✅ | Day 8: Resonant Collinearity | Solution |
9 | ✅ | ✅ | Day 9: Disk Fragmenter | Solution |
10 | ✅ | ✅ | Day 10: Hoof It | Solution |
11 | ✅ | ✅ | Day 11: Plutonian Pebbles | Solution |
12 | ✅ | ✅ | Day 12: Garden Groups | Solution |
13 | ✅ | ✅ | Day 13: Claw Contraption | Solution |
14 | ❌ | ❌ | Day 14: Restroom Redoubt | Solution |
15 | ❌ | ❌ | Day 15: Warehouse Woes | Solution |
... | ❌ | ❌ | ... | ... |
Day | Part 1 | Part 2 | Puzzle | Solution |
---|---|---|---|---|
1 | ✅ | ✅ | Day 1: Trebuchet?! | Solution |
2 | ✅ | ✅ | Day 2: Cube Conundrum | Solution |
3 | ✅ | ✅ | Day 3: Gear Ratios | Solution |
4 | ✅ | ✅ | Day 4: Scratchcards | Solution |
5 | ✅ | ✅ | Day 5: If You Give A Seed A Fertilizer | Solution |
6 | ✅ | ✅ | Day 6: Wait For It | Solution |
7 | ✅ | ✅ | Day 7: Camel Cards | Solution |
8 | ✅ | ✅ | Day 8: Haunted Wasteland | Solution |
9 | ✅ | ✅ | Day 9: Mirage Maintenance | Solution |
10 | ✅ | ✅ | Day 10: Pipe Maze | Solution |
11 | ✅ | ✅ | Day 11: Cosmic Expansion | Solution |
12 | ❌ | ❌ | Day 12: Hot Springs | Solution |
... | ❌ | ❌ | ... | ... |