mirror of
https://github.com/seigler/advent-of-code-browser-console
synced 2025-07-27 00:26:10 +00:00
Improving some previous days
This commit is contained in:
parent
048bb56462
commit
ba2a91c553
4 changed files with 4 additions and 5 deletions
2
day06.js
2
day06.js
|
@ -1 +1 @@
|
|||
let d=(document.body.textContent+`\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)]
|
||||
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)]
|
Loading…
Add table
Add a link
Reference in a new issue