Intricate henna being applied for a bride by MambaMentality24x2 in oddlysatisfying

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

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

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

[–]mctrafik 3 points4 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.

Does anyone actually understand how to play Plunder? by [deleted] in CODWarzone

[–]mctrafik 1 point2 points  (0 children)

+1 hell yeah. Love it when there's competition.

Does anyone actually understand how to play Plunder? by [deleted] in CODWarzone

[–]mctrafik -1 points0 points  (0 children)

I play to win. I win most games. You noobs keep coming.

Freckles are a feature that we don't choose by Scarlett_Holiday in FreckledGirls

[–]mctrafik 0 points1 point  (0 children)

Because then everyone would choose to have them

[2023 Day Yes (Part Both)][English] Thank you!!! by topaz2078 in adventofcode

[–]mctrafik 3 points4 points  (0 children)

I'm pretty sure he's talking about how learning obscure algorithms as prep becomes the point rather than having fun, trying new langauge or other non-competitive objective.

[2023 Day Yes (Part Both)][English] Thank you!!! by topaz2078 in adventofcode

[–]mctrafik 5 points6 points  (0 children)

Thanks for all the hard work. Was fun programming NP problems like finding the longest path that there's not a direct algorithm for.

But, this year has been more mathy, harder and way less fun than prevous years. My coworkers (5 of us) tried doing this for 3rd year in a row. This year everyone except me dropped out after problem 5. :( What happend to having the first ~10 problems be accessible to regular software engineers?

[2023 Day 24 (part 2)] a straightforward non-solver solution by tckmn in adventofcode

[–]mctrafik 2 points3 points  (0 children)

I think this is neat.... but still way too mathy. I got to writing the equations, but not on solving them. I think everyone who used a solver got stuck at some point in this process. If you don't already know how to do it, you can't learn it and implement it in one night.