day 6 part 2 (C). Implies change initial stupid algorithm with simple one

This commit is contained in:
2021-12-08 21:37:25 +01:00
parent 6a0a81aa38
commit 7c981d6633
3 changed files with 57 additions and 67 deletions

View File

@@ -53,8 +53,6 @@ In this example, after 18 days, there are a total of 26 fish. After 80 days, the
Find a way to simulate lanternfish. How many lanternfish would there be after 80 days?
Your puzzle answer was 362666.
The first half of this puzzle is complete! It provides one gold star: *
--- Part Two ---
Suppose the lanternfish live forever and have unlimited food and space. Would they take over the entire ocean?
@@ -62,3 +60,7 @@ Suppose the lanternfish live forever and have unlimited food and space. Would th
After 256 days in the example above, there would be a total of 26984457539 lanternfish!
How many lanternfish would there be after 256 days?
Your puzzle answer was 1640526601595.
Both parts of this puzzle are complete! They provide two gold stars: **