"Guard Gallivant" - Day 6 - Advent of Code 2024 #AdventOfCode https://adventofcode.com/2024/day/6

in Zig and Haskell

My straightforward brute force solution to day 6 part 2 does quite a lot of work. The Haskell version takes 10 seconds on my laptop.
https://github.com/justinhj/advent-of-haskell/blob/cc53137bfc071d1d30bee2ce1e7e70d138bdf6ec/problems/DaySix/PartTwo.hs#L106

1/6

Comments