Skip to content

Solutions to the Advent of Code challenges, an annual set of Christmas-themed programming puzzles released daily from December 1st to December 25th.

Notifications You must be signed in to change notification settings

david-1711/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

🎄 Advent of Code Solutions

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.


📁 Repository Structure

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

🚀 How to Run

To run a specific day's solution, follow these instructions:

🖥️ 2024 (C++)

  1. Clone the repository:

    git clone https://github.com/david-1711/advent-of-code.git
    cd advent-of-code
  2. Navigate to the desired day:

    cd 2024/day1
  3. 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.


🖥️ 2023 (Bash)

  1. Clone the repository:

    git clone https://github.com/david-1711/advent-of-code.git
    cd advent-of-code
  2. Navigate to the desired day:

    cd 2023/day1
  3. Run the Bash script:

    ./solution.sh

Note: Ensure you have a Bash shell available (typically pre-installed on Linux and macOS).


🧰 Technologies Used

  • Languages: Bash, C++
  • Development Tools: VS Code

📅 Progress Tracker

Here’s a quick look at the progress for each year's puzzles.

2024 Progress (C++)

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
... ... ...

2023 Progress (Bash)

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
... ... ...

About

Solutions to the Advent of Code challenges, an annual set of Christmas-themed programming puzzles released daily from December 1st to December 25th.

Topics

Resources

Stars

Watchers

Forks