Show newer

I am normal and can be trusted with raw cookie dough

advent of clod "spoiler" 

@aescling @vaporeon_

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?

@monorail @aescling @The_T hello fellow hellthread members how have your evenings been going

@aescling @The_T @monorail unless you expected fully that she would upB asap its not a easy thing to stop from happening

@aescling @The_T @monorail in neutral you're timing is lessed forced because gravity isn't applying so there's a significant difference here

@aescling @The_T @monorail i mean, you've played marth in disadvantage before. if you mistime the swing you're fucked. i think the upB was a good option in this situation

@aescling @The_T @monorail it seemed like a high probability of landing in this situation tho

@monorail @The_T this doesn't seem like an insane risk to me, but maybe that's the smash ultimate in me talking where his upb lands really easily

My phone is sitting up on my desk, leaning on my monitor, while 3 rats spin on it. 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

Show thread
Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.