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/day15.js Normal file
View file

@ -0,0 +1 @@
I=[9,12,1,4,17,0,18],F=a=>{L=new Map(I.slice(0,-1).map((a,b)=>[a,b]));let b=I[I.length-1];for(let c=I.length;c<a;c++)n=c-1-L.get(b)||0,L.set(b,c-1),b=n;return b},[F(2020),F(3e7)];