mirror of
https://github.com/seigler/advent-of-code-browser-console
synced 2025-07-26 00:06:10 +00:00
2021 day 6
This commit is contained in:
parent
078df7cca2
commit
c3433467d8
1 changed files with 1 additions and 0 deletions
1
2021/day06.js
Normal file
1
2021/day06.js
Normal file
|
@ -0,0 +1 @@
|
|||
[80,256].map(d=>{B=Array(9).fill(0);$`pre`.innerText.trim().split`,`.map(f=>B[+f]++);for(i=0;i<d;i++){B[(7+i)%9]+=B[i%9]};return B.reduce((a,x)=>a+x,0)})
|
Loading…
Add table
Add a link
Reference in a new issue