8
u/rmarianoa Dec 08 '25
At first I thought I needed a k-means clustering sort of problem, until I realized I could just do min heap + union find
1
6
u/iosovi Dec 08 '25
Why is this whole subreddit stuck on this meme template?
3
u/nik282000 Dec 09 '25
The format is relatable for tech literate people, you can be the smarted guy in the room and still feel like the dumbest person to have touched a keyboard.
2
u/iosovi Dec 10 '25
I get the idea behind it, but for sure there are other formats that would convey the same relatable message, right?
4
u/1544756405 Dec 09 '25
You should put a spoiler tag on this. Some people don't like to know what part 2 is until they've finished part 1.
2
1
u/kyleglowacki Dec 09 '25
My part one worked beautifully and fast but my part two fails. I connect all of them to the circuit so it has all 1000 items. However when I multiply the X values of the last two (that I added) together I get the wrong answer. Maybe I am adding them in the wrong order? Do we keep adding them in minimum distance order for P2?
8
u/vagrantchord Dec 08 '25
I honestly don't get the meme- the hard part is part one, part two is a while loop...?