Part 2 of day 5 of #AdventOfCode took a while to get correct. It is an interesting tradeoff in how much to setup your data structures. (It reminds me of studying in university and how much to memorize versus re-derive.) In this case, I sorted and grouped the rules. github.com/omalley/adve...