neilnjae, #AdventOfCode day 10 in #Haskell
Nothing much clever here. Depth first search to find the loop, breadth-first search to flood-fill the regions. The only clever bit is doubling the scale of the map to make it easy to "squeeze between pipes."
Full writeup on my blog https://work.njae.me.uk/2023/12/10/advent-of-code-2023-day-10/.
Code on Gitlab https://gitlab.com/NeilNjae/advent-of-code-23/-/blob/main/advent10/Main.hs