This commit is contained in:
2021-12-07 12:56:54 +01:00
parent a743be9875
commit d3427a2651
2 changed files with 77 additions and 0 deletions

11
2021/06/README.md Normal file
View File

@@ -0,0 +1,11 @@
# 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.
<details>
<summary>Solutions</summary>
<ol>
<li>352195</li>
<li>1600306001288</li>
</ol>
</details>