@NaClKnight eggcog-nac?
advent of clod "spoiler"
console.log(
"solution:",
Deno.readTextFileSync("day-03-q1-input.txt").split("\r\n").reduce((a, s) => {
for (var d = new Array(12).fill(-1), m = { "-1": -1 }, i = 0; i < 12; ++i) for (let j = m[i - 1] + 1; j < s.length - 11 + i; ++j) if (+s[j] > d[i]) d[i] = +s[m[i] = j];
return a + d.reduce((sum, n, i, a) => sum + 10 ** (a.length - 1 - i) * n, 0);
}, 0));
despite what you may suspect from the double for loop, this runs in O(n) time
@holly cool im gonna forward you a report, since you lied
hi @vaporeon_ wanna see Advent of Clod code so golfed that its not even a spoiler?
@holly are you or maple the admin of hoppet.cool
@onfy reported.
My phone is sitting up on my desk, leaning on my monitor, while 3 rats spin on it. https://spinningrat.online/
Putting worcestershire in my tartar sauce feeling like a real culinary genius over here give me a michelin star right now call me the bear
i go by Clodsire, Clodboy and Catwin.
videogame enjoyer. mathematics hobbyist and recovering physicist. software engineer. professional wonk. prophet of The Truth. the walking embodiment of "not diagnosed, but somethings wrong". i like animals that wear cowboy hats.
number of fat cock awards received: 56
header is by @vaporeon_
"i regret ever allowing him here" ~aescling
"oh you're one of those weird movie likers" ~Ti
28+
he/him