day 6 part 1 (simple algorithm) + part 2 README
This commit is contained in:
@@ -51,3 +51,14 @@ Each day, a 0 becomes a 6 and adds a new 8 to the end of the list, while each ot
|
||||
In this example, after 18 days, there are a total of 26 fish. After 80 days, there would be a total of 5934.
|
||||
|
||||
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?
|
||||
|
||||
After 256 days in the example above, there would be a total of 26984457539 lanternfish!
|
||||
|
||||
How many lanternfish would there be after 256 days?
|
||||
|
Reference in New Issue
Block a user