Merge branch 'master' of git.sr.ht:~crocmagnon/advent-of-code
This commit is contained in:
commit
2393ce0618
|
@ -0,0 +1,4 @@
|
|||
let total = 0;
|
||||
$("pre").innerText.trim().split("\n").map(el => Number(el)).map((el, index, array) => el + array[index+1] + array[index+2]).reduce((prev, current) => {if (prev < current) {total += 1} return current});
|
||||
console.log(total);
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue