Source: Day 4: Ceres Search
Full solution for today (spoilers!).
Part 1
Given a grid of letters, count how many times
XMAS
appears in any direction (horizontally, vertically, diagonally; forward or backward).
Full solution for today (spoilers!).
Given a grid of letters, count how many times
XMAS
appears in any direction (horizontally, vertically, diagonally; forward or backward).