AoC day7

from blog blog, | ↗ original
AoC day7 Today’s puzzles were about bags which contain a certain amount of other bags (and so on) based on the rules from the input. The first one asks for the amount of different bags in which our -shiny gold- one is contained. The second one asks for the count of bags the own contains. Abstraction Let’s say each bag is a node and each rule is...