Advent of Code 2021

Solutions for Advent of Code 2021. Don't read if you don't want spoilers.

Usage: Build with ghc -O --make <name> in the respective folders, where <name> is the name of a solution -- all puzzles come in two parts, the solution for the first part will be named dayX and the solution for the second part will be called dayX-b, e.g.

  ghc -O --make day1

To build the solution for the first part.

All executables "solve" the problem by getting the input from stdin, and print out the solution directly without listing intermediate steps.

There are generally no detailed explanations w.r.t. approach or implementation details for each problem.