neilnjae, #AdventOfCode day 21 done in #Haskell
A geometric approach to finding the solution, involving slicing up the map for part 2 into regions that would repeat, then finding how many of each I'd need for the final solution.
Full writeup: https://work.njae.me.uk/2023/12/29/advent-of-code-2023-day-21/
Code: https://gitlab.com/NeilNjae/advent-of-code-23/-/blob/main/advent21/Main.hs
Add comment