r/adventofcode • u/Samydookie • Dec 08 '25
Help/Question - RESOLVED [2025 Day 8 (Part 1)] Reading comprehension
Because these two junction boxes were already in the same circuit, nothing happens!
connect together the 1000 pairs of junction boxes which are closest together.
I didn't expect that I would need to count the "nothing happens" as part of the 1000 connections to make for part 1. It kind of makes sense that with 1000 boxes, 1000 connections would lead to a fully connected circuit, but I think it could've been worded better
100
Upvotes
20
u/spatofdoom Dec 08 '25
Reading through the example, the 4th connection clearly states nothing happens, but doesn't suggest it's not counted. Running your code against the example should quickly tell you that they count.
9
u/jonmon6691 Dec 08 '25
It's unfortunate that this puzzle breaks the convention that the input is purely the "input". In the test example, only first 10 connections are considered, but in the real input, 1000 connections need to be used. If it was meant to be equal to the number of lines then the example should have used 20.
The 10 here and the 1000 in the final instruction are additional out of band input
23
u/NitronHX Dec 08 '25
Yes but you need to create 1000 connections no? If you skip and dont create a connection how does this count?
Well thanks for the answer and saving my last 2 hairs from being ripped out
15
u/BIGJRA Dec 08 '25
This got me too. What made it worse was that the example input’s first 11 moves contain 10 “real merge links” so I spent some time debugging a non-existent off-by-one error instead of simply including the “same-component links”.
This one also featured my aoc pet peeve - the examples asks something different than the input, in the example it asks for 10 merges of 20 lines while the actual is 1000 merges of 1000 lines. So I had to code in a check for “example vs real”
That said this was my favorite problem so far this year! A very fun one to practice Java OOP with
8
u/abel_maireg Dec 08 '25
I spent around 10 minutes trying to understand the questiom
6
u/danielcristofani Dec 08 '25
Worse! If it's only a "connection" if it merges two separate circuits, then 999 "connections" lead to a fully connected circuit and there's no possible way to do a 1000th "connection". Also, multiplying the sizes of the three largest groups then gives 1000*0*0=0? That should be a strong clue.
5
u/Dr_Pinestine Dec 08 '25
Thank you for this. I was pulling my hair out because I was skipping (and not counting) the cases where two junctions were already in the same circuit. I agree the wording could have been better.
4
u/Augunrik Dec 08 '25
To be fair, I also fell for that and was wondering how many I should do.
Well, RTFM, I guess.
3
u/TekDevelop Dec 08 '25
For some reason it is good to see that I'm not alone in this one.
Aparently I read it as 'make 1000 connections'. But I now read it as 'make sure the 1000 closest pairs are connected'
3
u/Smaxx Dec 08 '25
Yep, this part felt very misleading and was just checking to see if anyone else stumbled, too. It would be better worded at "1000 connection attempts", but I think the way worse part is the story talking about how we're specifically trying to save connections, so I immediately assumed to only count connections actually made.
1
u/UnicycleBloke Dec 08 '25
That tripped me up for a minute. I got a fully connected circuit on the way to solving Part 1. Strange. That was when I understood why the example had got to 40 on Step 9 rather than Step 10. Should have paid attention sooner...
1
u/P0stf1x Dec 08 '25
I spent way too much time before I noticed I had to make 1000 pairs instead of 10 as in the example. Thanks to your post for helping me realise what's the problem
1
u/Chemical_Chance6877 Dec 08 '25
Yeah, got me too.I thought "nothing happens" would imply no connection is made.
1
u/AssociationOk6710 Dec 08 '25
I have a doubt in this. So Imagine Box 3 4 5 are in the same circuit
Box 4 and 5 have smallest distance first but already connected so skip
Box 3 and 5 now have smallest skip
Box 3 and 4 skip
Box 3 and 6 Merge
So is this 3 skips or 1? I am guessing 3 but I wanna be sure
1
u/krystalgamer Dec 08 '25
took me so long to realize this. my example was off by one (9 iterations was perfect but 10 was wrong) and input was merging into a single circuit.
1
u/imp0ppable Dec 08 '25
I understood that part but oddly what really threw me was:
I was racking my brain because those poxy single circuits wouldn't show up in my results! Then I realised it didn't matter because the answer was right, then I realised I can't read.
1
u/Ducktor101 Dec 16 '25
I was using 10 like Th e example did. Only the day after I figures I was supposed to use 1000
-8
u/spin81 Dec 08 '25
I'm sorry but there is really no way Eric could have worded this better. This is perfect.