This repository contains my solutions for the Advent of Code challenges. Each day's solution is organized into its own folder with a Makefile for easy compilation and execution.
-
Clone the repository:
git clone https://github.com/Sinister-00/Advent-Of-Code-2023.git cd Advent-Of-Code-2023
-
Navigate to the specific day you want to solve:
cd XX
XX is the specific day you want to solve. say you want to solve
day 2
then you need to run this in terminalcd 02
. -
Replace the
input.txt
file with your own input. -
Run the Makefile:
make
This will compile the solution and run the executable file which is generated by the name of the corresponding day.
-
If needed, clean up generated files:
make clean
- A
output.txt
which has solutions of all days. - Each day's solution is organized into its own folder (e.g.,
day01
,day02
, ...). - Inside each day's folder:
Makefile
: Contains compilation and execution rules.Solution.cpp
(or other source files): Source code for the solution.input.txt
: The input file for the specific day's challenge.
- Make sure to have a C++ compiler installed on your system.
- Replace
input.txt
with your own input for each day. - The repository is set up for easy execution with a simple
make
command.
Feel free to explore and adapt the solutions for your needs. Happy coding!
If you encounter any issues with the solutions or have suggestions for improvements, feel free to open an issue. I appreciate your feedback and will do my best to address the concerns promptly.
If you'd like to contribute to this repository:
-
Fork the repository to your GitHub account.
-
Create a new branch for your changes:
git checkout -b feature/your-feature-name
-
Make your changes and commit them:
git add . git commit -m "Add your meaningful commit message"
-
Push the changes to your fork:
git push origin feature/your-feature-name
-
Open a pull request against the
main
branch of this repository.
I'll review and merge the pull requests as soon as possible. Thank you for your contributions!