Advent of Code, Day 8

This tale of dancing regexps was fairly straightforward, once I’d figured out what they meant in the second part (yes, it’s obvious now). Anyway, we just iterate through a set of regexps each time making sure the ordering is sensible, and count the difference (highlighting off because Crayon is getting confused):

Copyright © Found
Jim Finnis' personal blog

Built on Notes Blog Core
Powered by WordPress