one big repo for all years

This commit is contained in:
Joshua Seigler 2021-12-02 15:52:52 -05:00
parent 4e1cd98bf1
commit ccc3cdba3a
9 changed files with 0 additions and 0 deletions

1
2020/day06.js Normal file
View file

@ -0,0 +1 @@
d=(document.body.innerText+`\n`).split`\n\n`,y=g=>[...new Set(g.replace(/\n/g,'').split``)];[d.reduce((a,g)=>a+y(g).length,0),d.reduce((a,g)=>a+y(g).filter(b=>g.split(b).length==g.split`\n`.length+1).length,0)]