My C++ solutions to the very first Advent of Code 2015 (i.e., AoC2015) some years too late.
When working on my solutions, I strive to make them as general as possible, that is, they could be adapted to solve similar problems. Elegance, readability, and efficiency, in this order, are also my concerns, though secondary after generality.
Install the following libraries, if needed:
libcrypto
andlibssl
: used to compute the MD5 hash function in day four.
Use make
to build the program; the executable file advent
will be located in
the bin
directory. To clean the output directories, use make clean
.
The general usage of advent
, for a particular DAY, is
advent
DAY
Additionally, if you have another input for a particular day stored in the
inputs
’ folder, name it in the format day
DAY
.
EXT
.txt
, where
EXT is any arbitrary extension. To use it, append EXT to the end of the
command, like this:
advent
DAY
EXT
This repository is licensed with the MIT (Expat) (SPDX-License-Identifier: MIT); everyone with a copy of this software is permitted to use, modify, distribute, and/or sublicense it, provided that the LICENSE and the copyright headers on the top of each source file are preserved in copies of this package.
There is no warranty of any kind for this material, nor the author is liable for any third-party use of this collection. For more details and clarification, please read the LICENSE in full text.