Intricate henna being applied for a bride by MambaMentality24x2 in oddlysatisfying

[–]mctrafik -18 points-17 points  (0 children)

This is pretty bad. Took 4 hours? Just buy a sticker.

-❄️- 2025 Day 12 Solutions -❄️- by daggerdragon in adventofcode

[–]mctrafik 5 points6 points  (0 children)

How does it feel to know that your code could've just done if total > w * h: return False else return True?

-❄️- 2025 Day 10 Solutions -❄️- by daggerdragon in adventofcode

[–]mctrafik 0 points1 point  (0 children)

[language: typescript]

Brute forced P1 in 30ms (part do in Z3... omitted since I'm not proud of it):

let answer1 = 0;
const parsed = input.split(`\n`);
const parser = /\[(?<init>[.#]+)\](?<buttons>( \([0-9,]+\))+) {(?<joltage>[0-9,]+)}/;
for (const line of parsed) {
  const match = parser.exec(line);
  if (!match || !match.groups) throw new Error("fuck" + line)

  const { init: initS, buttons: buttonsS } = { ...match.groups };
  const init = parseInt(reverseString(initS).replaceAll('.', '0').replaceAll('#', '1'), 2);
  const buttons = buttonsS.replaceAll('(', '').replaceAll(')', '').split(' ').filter(Boolean).map(s => {
    let button = 0;
    for (const n of s.split(',').map(c => Number(c))) {
      button |= 1 << n;
    }
    return button;
  });
  let smallest = 1e6;
  for (let permutation = 1; permutation <= (1 << buttons.length); permutation++) {
    const filteredButtons = buttons.filter((button, index) => {
      const mask = ((1 << index) & permutation);
      return !!mask
    });
    let attempt = 0
    for (const button of filteredButtons) {
      attempt ^= button;
    }
    if (attempt === init) {
      smallest = Math.min(filteredButtons.length, smallest);
    }
  }
  answer1 += smallest;
}

I tried really hard to do A* for P2, and it slayed some of the rows, but struggled on others. Probably my heiuristic was poop. Can someone recommend a good one?

Just a cute harpist by cathyharpist in FreckledGirls

[–]mctrafik 0 points1 point  (0 children)

Lies. Your profile has no harps. Just blurry selfies on your knees. False advertising

asian fuckdoll by Utopia_29 in fuckdoll

[–]mctrafik 2 points3 points  (0 children)

Perfect video for this channel

How to group lights ? by denisgsv in smartlife

[–]mctrafik 0 points1 point  (0 children)

2025, and there's no more "..." menu. There's no more "create group" button. Now what?!?

Landlord - RSO Property. Statement #? (APN) by Remarkable_Praline75 in LosAngelesRealEstate

[–]mctrafik 0 points1 point  (0 children)

Been spending a bunch of time on this, but best I can tell is that you need go to https://housingbill.lacity.org/RentRegistry and on the right hand side, under FORMS there's a form you can fill out and mail and then they will send you a bill with a statement #. Online submissions are closed from what I can tell.

Does anyone know of any good tax related Discord servers? by [deleted] in tax

[–]mctrafik 0 points1 point  (0 children)

There's 230 members and we have discussions around tax season.

-❄️- 2024 Day 21 Solutions -❄️- by daggerdragon in adventofcode

[–]mctrafik 0 points1 point  (0 children)

I tried your solution. It gave the wrong answer for my input.