My solutions to https://adventofcode.com/ puzzles.
This year I’m trying the puzzles in Haskell and Racket.
Puzzle | Haskell | Racket |
Day 1: Chronal Calibration | Day01.hs | day01.rkt |
Day 2: Inventory Management System | Day02.hs | day02.rkt |
Day 3: No Matter How You Slice It | Day03.hs | |
Day 4: Repose Record | Day04.hs | |
Day 5: Alchemical Reduction | Day05.hs | |
Day 6: Chronal Coordinates | Day06.hs | |
Day 7: The Sum of Its Parts | Day07.hs | |
Day 8: Memory Maneuver | Day08.hs | |
Day 9: Marble Mania | Day09.hs | |
Day 10: The Stars Align | Day10.hs | |
Day 11: Chronal Charge | Day11.hs | |
Day 12: Subterranean Sustainability | Day12.hs | |
Day 13: Mine Cart Madness | Day13.hs | |
Day 14: Chocolate Charts | Day14.hs | |
Day 15: Beverage Bandits | Day15.hs | |
Day 16: Chronal Classification | Day16.hs | |
Day 17: Reservoir Research | ||
Day 18: Settlers of The North Pole | ||
Day 19: Go With The Flow | Day19.hs | |
Day 20: A Regular Map | ||
Day 22: Chronal Conversion | ||
Day 23: Mode Maze | ||
Day 24: Experimental Emergency Teleportation | ||
Day 25: Four-Dimensional Adventure | Day25.hs |
Not committing to any particular language this year. I may switch it up for some puzzles.
I’ve added a nix-shell shebang to each file defining all dependencies, so the solutions can be directly invoked with Nix installed, e.g.:
$ ./Day01.hs < inputs/01.txt
Puzzle | Solution |
Day 1: The Tyranny of the Rocket Equation | Day01.hs |
Day 2: 1202 Program Alerm | Day02.hs |
notebook.jl (Using Julia with Pluto.jl)
notebook.jl (Using Julia with Pluto.jl)
notebook.jl (Using Julia with Pluto.jl)