Info and problems are available at https://adventofcode.com/2017
Each day's problem input and solution is in a subdirectory, 01
, 02
, etc.
Solutions are C++. Compile with:
g++ -std=c++17 -Wall -g -o doit doit.cc
Input has sometimes been pre-processed for ease of reading.
Example input if any is called input1
.
The real input is input
(note, my inputs are no longer included in
the repository).
Input is on stdin, output is printed to stdout. Run part 1 as ./doit 1 < input
and part 2 as ./doit 2 < input
Sometimes I might go back and revisit a problem in a different
(usually more efficient) way. Alternatives will be other .cc
files
starting with doit
.
Here's my list of recommended problems for the year, along with direct links. Recommendations are based on a combination of factors: perhaps the problem admits an unusual and clever solution, or perhaps it would allow an interesting visualization, or perhaps the problem description itself was cute. In whatever way, I found the problem unusually fun. Each of these problems is either ⭐ (recommended) or ⭐⭐ (highly recommended).