advent-of-code/2020/solutions/7/README.md

378 B

7

This one was maybe the coolest yet! Fixed-point iteration and some recursion. Amazing :)

For the first part we iterate as long as we don't find any enclosing bags anymore. This can build long chains.

The second we recurse down the bag chain und sum it up recursively.

Solutions
  1. 164
  2. 7872