advent-of-code/2020/solutions/7/README.md
2021-12-01 11:43:46 +01:00

16 lines
378 B
Markdown

# 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.
<details>
<summary>Solutions</summary>
<ol>
<li>164</li>
<li>7872</li>
</ol>
</details>