Day 4 part 1 https://adventofcode.com/2024/day/4 #AdventOfCode
pad dot-pads the matrix to avoid wraparound.
x y shift m rotates the matrix x left, y down.
d(=x y) shift4 m produces the 4 matrices shifted by d*0 1 2 3.
d XMAS m identifies the X in XMAS in direction d.
=> More informations about this toot | View the thread | More toots from rsc@hachyderm.io
=> View adventofcode tag This content has been proxied by September (3851b).Proxy Information
text/gemini