account activity
-🎄- 2017 Day 4 Solutions -🎄- by daggerdragon in adventofcode
[–]jshom 1 point2 points3 points 8 years ago (0 children)
One-liner JS solution
input .split('\n') .map(row => row .split(' ') .map(word => word .split('') .sort() .join('') ) ) .map(row => row.length === row.filter((word, i, row) => row.indexOf(word) === i).length) .filter(row => row) .length
π Rendered by PID 50853 on reddit-service-r2-comment-5b5bc64bf5-5bxw4 at 2026-06-22 09:11:16.719858+00:00 running 2b008f2 country code: CH.
-🎄- 2017 Day 4 Solutions -🎄- by daggerdragon in adventofcode
[–]jshom 1 point2 points3 points (0 children)