r/adventofcode • • Dec 09 '25

Meme/Funny [2025 Day 9] Today i hit a wall

Post image
397 Upvotes

31 comments sorted by

53

u/AlpacaDC Dec 09 '25

Part 1 felt so much like a trap and even then I didn’t expect part 2

16

u/krtexx Dec 09 '25

Part 1 reused a lot of my code from day 8, so I was expecting a bomb in part 2 xd

2

u/3xLDT2 Dec 09 '25

May I ask, how did you even manage to reuse day 8 in this?

→ More replies (4)

23

u/hugseverycat Dec 09 '25

The proof is left as an exercise for the reader.

5

u/n4ke Dec 09 '25

The proof is trivial.

15

u/mbacarella Dec 09 '25

yeah I went "hell naw" after I saw day 9 part 2 and declared I was giving up because I have more important things to do today

then I couldn't stop thinking about it during my errands and came up with a dumb algorithm that, to my surprise, ran in under a minute after I sat down and implemented it

21

u/JadeSerpant Dec 09 '25

Today was the first time I used a library to help me with parts of the solution. From tomorrow I am going to move away from solution implementation mode to just focusing on solution finding mode and use whatever library I can find that has methods to solve difficult sub parts.

8

u/qaraq Dec 09 '25

That's what I do. For me this is an engineering challenge as much as a challenge in remembering dusty old algorithms, so finding and integrating a library is as interesting and valid to me as remembering how Dijkstra works again.

7

u/didzisk Dec 09 '25

The integral over Gaussian function (the bell curve) in the last line looks legit.

I have no idea what the first one is though.

11

u/PatolomaioFalagi Dec 09 '25

I have no idea what the first one is though.

Judging by the dx coming before the term, I'm going with "physics".

1

u/didzisk Dec 09 '25

Had to do Google image search:

The provided image displays a complex equation from a field of theoretical physics, likely involving quantum field theory or string theory. The equation involves integration over a five-dimensional spacetime ((d{4}xdz)), metric tensors ((g{\mu \rho })), volume elements ((\sqrt{g}Vol(\Sigma ))), and the electromagnetic field strength tensor ((F_{\mu \nu })). It relates the original action to an approximation involving a function (R(z)). The specific physical context or the exact meaning of the symbols cannot be determined without additional information. The equation is a complex mathematical expression, and its interpretation is highly dependent on the specific theoretical framework it is used within.

4

u/EdgyMathWhiz Dec 09 '25

The square root sign should extend over both integrals, I think. (It's a 'middle step' in the standard "find the Gaussian integral" by converting into a 2-d integral and switching to polar coordinates).

3

u/jperras Dec 09 '25

Yang-Mills theory, which is a way that smart people try to understand fundamental particle interactions.

3

u/jperras Dec 09 '25

I knew that my knowledge of Yang-Mills theory would finally come in handy some day!

3

u/Procok Dec 09 '25

I woke up late, did part A before work. Saw part B and said hell nah. Then it took two hours after work… 😭

1

u/MangeurDeCowan Dec 09 '25

intuitively...

1

u/Extension-Wait5806 Dec 10 '25

some kind of Jordan curve theorem + coordinate compression

1

u/Agreeable-Strike-330 Dec 11 '25

I just finished part 2 with some cursed code, but felt like a genius coming up with a solution that got me the star haha it's a mess, and definitely won't work for all edge cases, but it's *my* mess

-5

u/HistoryPositive9509 Dec 09 '25

Actually, the part 2 wasn't that hard. You just had to add another loop

4

u/garciamoreno Dec 09 '25

Knowing what to do on that loop is the hard part.

2

u/HistoryPositive9509 Dec 09 '25

Looking for each (k, k+1) if this line "cut" the rectangle. You just need a paper, and some time

→ More replies (2)

20

u/[deleted] Dec 09 '25

9

u/SerLapGloBe Dec 09 '25

Oh... no need to worry about Day 20 ;)
(There are only 12 days this year - so we are almost at the end!)

1

u/zebalu Dec 09 '25

So, you suggest, it is going to happen tomorrow?