Source: Day 8: Haunted Wasteland
Full solution for today (spoilers!)
Part 1
Given a (repeated) sequence of moves (
Lfor left andRfor right) and a directed graph where each node has two neighbors (left and right), count how many total steps it takes to get from the nodeAAAto the nodeZZZ. The sequence of moves can (and will) need to repeat.