Home

Awesome

Advent of Code

This repository contains solutions to the Advent of Code puzzles.

Current Status

YearC++PythonLink to foldersLink to README.md
20231-25-LinkLink
20221-25-LinkLink
20211-25-LinkLink
20201-251-25LinkLink
20191-251-7LinkLink
20181-25-LinkLink
20171-25-LinkLink
20161-25-LinkLink
20151-25-LinkLink

To run

To run any day's/puzzle's solution, use the following command:

# To compile
# <clang++/g++> <year>/cpp/day_<##><a/b>.cpp -o <output file>
# To run
# ./<output file> <path to input file>
# ./<output file> <year>/<input/sample_input>/day_<##>_<input/sample_input>

# Sample
g++ 2016/cpp/day_01a.cpp -o a.out
./a.out 2016/input/day_01_input