2021 solutions so far

This commit is contained in:
Joshua Seigler 2021-12-02 15:53:04 -05:00
parent ccc3cdba3a
commit 5986c9bd69
2 changed files with 2 additions and 0 deletions

1
2021/day01.js Normal file
View file

@ -0,0 +1 @@
d=$('body').innerText.trim().split`\n`;t=(d,n)=>d.reduce((a,x,i)=>a+(+x>d[i-n]),0);[t(d,1),t(d,3)]