mirror of
https://github.com/cupcakearmy/advent-of-code.git
synced 2024-11-16 18:11:17 +01:00
.. | ||
python | ||
README.md |
06
The naive way to do it would be to keep a list. A way more performant ways way to do this is just having an array with 9 entries (0-8) which count the states of the fish. Then you actually just rotate the array each day and add the 0
entry to the 6
additionally.
Solutions
- 352195
- 1600306001288