mirror of
https://github.com/cupcakearmy/advent-of-code.git
synced 2025-12-14 05:44:59 +00:00
move to 2020 fodler
This commit is contained in:
15
2020/solutions/7/README.md
Normal file
15
2020/solutions/7/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# 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>
|
||||
Reference in New Issue
Block a user