Advent of Code 2024 - Day 4

I massively overcomplicated this one. Pretty simple problem in retrospect, but my attempt to write a smart solution backfired super hard this time. Click here to see my source code for this day&rsquo;s problem. If you haven&rsquo;t solved today or any day&rsquo;s puzzle yet yourself, there&rsquo;s bound to be spoilers in these writeups. Part 1 To start, we&rsquo;re given a grid of text we&rsquo;re…