Skip to content

vekt0r-github/aoc2020

Repository files navigation

aoc2020

Solutions to days 12-25 of Advent of Code 2020 in Haskell, written by someone who had never tried functional programming before day 12.

Usage

A compiled executable covering all code can be run with app/aoc2020.exe [<day_number> ..]; it must be run from the repository's base folder. The source code is located in src/ (day11.py is thrown in for fun because I like the solution), and the input files are in input/.

Notes

day 16: rewrote findPerm method later for reuse in day 21

day 18: the eval function in Language.Haskell.Interpreter made part 2 a lot easier, but part 1 was just as annoying

slowest running time (compiled) awards:

  1. day 19 (120s)
  2. day 15 (55s)
  3. day 23 (45s)
  4. others (<3s)

About

Haskell solutions to Advent of Code 2020 problems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published