mirror of
https://github.com/seigler/advent-of-code-browser-console
synced 2025-07-28 00:56:09 +00:00
one big repo for all years
This commit is contained in:
parent
4e1cd98bf1
commit
ccc3cdba3a
9 changed files with 0 additions and 0 deletions
1
day15.js
1
day15.js
|
@ -1 +0,0 @@
|
|||
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)];
|
Loading…
Add table
Add a link
Reference in a new issue