Advent of Code is an annual set of Christmas-themed computer programming challenges that follow an Advent calendar. It has been running since 2015. The puzzles unlock daily at midnight EST/UTC-5 from December 1st to December 12th.
This repository contains my personal solutions, written in C++, focusing on efficiency and clean code.
| Day | Challenge | Solution |
|---|---|---|
| 01 | Secret Entrance | Solution |
| 02 | Gift Shop | Solution |
| 03 | Lobby | Solution |
| 04 | Printing Department | Solution |
| 05 | Cafeteria | Solution |
| 06 | Trash Compactor | Solution |
| 07 | Laboratories | Solution |
| 08 | Playground | Solution |
| 09 | Movie Theater | Solution |
| 10 | Factory | Solution |
| 11 | Reactor | Solution |
The repository is organized by day. Each directory contains the solution source code, input files, and the compiled binary.
For days where the solution for Part 2 requires a different approach or significant changes, the directory is split into part1 and part2.
📦 adventofcode-2025
┣ 📂 01
┃ ┣ 📜 input.txt
┃ ┣ 📜 sample.txt
┃ ┗ 📜 solution.cpp
┣ 📂 06
┃ ┣ 📂 part1
┃ ┃ ┗ 📜 solution.cpp
┃ ┗ 📂 part2
┃ ┗ 📜 solution.cpp
┗ 📜 README.md
- A C++ compiler (e.g.,
g++,clang++) supporting C++17 or later.
Navigate to the specific day's directory and compile the solution.
# Navigate to the day's folder (e.g., Day 1)
cd 01
# If the day is split into parts, navigate to the specific part
# cd part1
# Compile the solution
g++ -std=c++17 solution.cpp -o solution
# Run the solution
./solutionNote: The solutions are designed to read from
input.txtlocated in the same directory. Ensure the file exists before running.
This project is licensed under the MIT License. Advent of Code puzzles and inputs are property of Advent of Code.