advent-of-code/2020/solutions/7
cupcakearmy e88c99bb86
move to 2020 fodler
2021-12-01 11:43:46 +01:00
..
python move to 2020 fodler 2021-12-01 11:43:46 +01:00
README.md move to 2020 fodler 2021-12-01 11:43:46 +01:00
data.txt move to 2020 fodler 2021-12-01 11:43:46 +01:00
test.txt move to 2020 fodler 2021-12-01 11:43:46 +01:00

README.md

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