This commit is contained in:
2022-11-28 23:51:45 +01:00
parent 607651d3ba
commit e3fe7fb6bc
2 changed files with 99 additions and 0 deletions

13
2021/14/README.md Normal file
View File

@@ -0,0 +1,13 @@
# 14
This was nice! Similar to the Lanterfish one. The naive way is to have a big string, but that becomes unfeasible quickly.
The solution was to keep track of the number of combinations available and at the end divide by 2 the counted elements. Rounding up so that the first and last element is not neglected as they are not doubled.
<details>
<summary>Solutions</summary>
<ol>
<li>2988</li>
<li>3572761917024</li>
</ol>
</details>