Advent of Code 2018
November 13, 2023 · View on GitHub
Info and problems are available at https://adventofcode.com/2018
Overview
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.
Recommended problems
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).
- Day 7: The Sum of Its Parts ⭐
- Day 10: The Stars Align ⭐⭐
- Day 11: Chronal Charge ⭐
- Day 13: Mine Cart Madness ⭐
- Day 15: Beverage Bandits ⭐
- Day 17: Reservoir Research ⭐⭐
- Day 19: Go With The Flow ⭐⭐
- Day 20: A Regular Map ⭐
- Day 21: Chronal Conversion ⭐⭐
- Day 23: Experimental Emergency Teleportation ⭐⭐
