Advent of Code 2022
November 13, 2023 · View on GitHub
Info and problems are available at https://adventofcode.com/2022
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 8: Treetop Tree House ⭐
- Day 14: Regolith Reservoir ⭐
- Day 15: Beacon Exclusion Zone ⭐⭐
- Day 16: Proboscidea Volcanium ⭐⭐
- Day 17: Pyroclastic Flow ⭐
- Day 19: Not Enough Minerals ⭐⭐
- Day 22: Monkey Map ⭐⭐
- Day 24: Blizzard Basin ⭐⭐
