neilnjae,
@neilnjae@dice.camp avatar

day 10 in

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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • haskell
  • mdbf
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • everett
  • cisconetworking
  • slotface
  • GTA5RPClips
  • rosin
  • thenastyranch
  • kavyap
  • tacticalgear
  • modclub
  • JUstTest
  • osvaldo12
  • Durango
  • khanakhh
  • anitta
  • provamag3
  • ngwrru68w68
  • cubers
  • tester
  • ethstaker
  • megavids
  • normalnudes
  • Leos
  • lostlight
  • All magazines