Advent of Code 2021 solutions
  • Haskell 93.5%
  • Python 6.3%
  • Makefile 0.2%
Find a file
2026-05-31 20:36:11 +02:00
.gitignore made python files visible 2021-12-20 14:03:29 +01:00
Day1.hs added evaluate functions to Utils (and migrated everything to it) 2021-12-07 10:49:50 +01:00
Day2.hs changed day 2 and 15 to work with the new types and functions 2021-12-17 13:01:08 +01:00
Day3.hs made binToInt actually do its job (used to parse in reverse???) 2021-12-16 14:07:38 +01:00
Day4.hs added evaluate functions to Utils (and migrated everything to it) 2021-12-07 10:49:50 +01:00
Day5.hs added evaluate functions to Utils (and migrated everything to it) 2021-12-07 10:49:50 +01:00
Day6.hs added evaluate functions to Utils (and migrated everything to it) 2021-12-07 10:49:50 +01:00
Day7.hs day 7 golf 2021-12-08 10:17:09 +01:00
Day8.hs day 8 2021-12-08 17:47:24 +01:00
Day9.hs attempted day 11, but gave up 2021-12-12 15:17:56 +01:00
Day10.hs day 10 2021-12-10 11:06:48 +01:00
Day11.hs attempted day 11, but gave up 2021-12-12 15:17:56 +01:00
day11.py failed attempts for days 11, 18, 19, and 20 2021-12-20 14:04:49 +01:00
Day12.hs commentary 2021-12-12 21:46:58 +01:00
Day13.hs day 13 2021-12-13 11:33:15 +01:00
Day14.hs day 14 diagnostics 2021-12-15 10:20:04 +01:00
Day15.hs changed day 2 and 15 to work with the new types and functions 2021-12-17 13:01:08 +01:00
Day16.hs day 16.1 (no idea why 2 isn't working) 2021-12-17 12:50:41 +01:00
Day17.hs extracted velocities to test for day 17 2021-12-17 12:55:48 +01:00
Day18.hs failed attempts for days 11, 18, 19, and 20 2021-12-20 14:04:49 +01:00
Day19.hs failed attempts for days 11, 18, 19, and 20 2021-12-20 14:04:49 +01:00
Day20.hs failed attempts for days 11, 18, 19, and 20 2021-12-20 14:04:49 +01:00
day20.py attempts for days 20 and 21 2021-12-22 12:56:02 +01:00
Day21.hs attempts for days 20 and 21 2021-12-22 12:56:02 +01:00
Day22.hs a massacre of the last days 2026-05-31 20:36:11 +02:00
Day24.hs a massacre of the last days 2026-05-31 20:36:11 +02:00
Day25.hs a massacre of the last days 2026-05-31 20:36:11 +02:00
Makefile added test target to Makefile 2021-12-04 12:12:29 +01:00
README.md links? try again 2021-12-09 14:34:45 +01:00
Types.hs a massacre of the last days 2026-05-31 20:36:11 +02:00
Utils.hs a massacre of the last days 2026-05-31 20:36:11 +02:00

Advent of Code 2021 solutions

This repository holds my solutions for Advent of Code 2021. They are all written entirely in Haskell.

To use

The included Makefile contains targets to build Haskell files as well as run the resulting binaries using the example inputs and the personal inputs.

(in the following snippets, replace $DAY with the number of the day you want to run)

To run one of these, put your input in the file input/$DAY.txt and run the following commands:

make Day$DAY
make run-$DAY

This will build the file and run it with the personal inputs. To use the example input, put it in the file input/$DAY-test.txt and run

make Day$DAY
make test-$DAY