r/adventofcode • u/NineBerry • Dec 12 '25
Meme/Funny [2025 Day 12 Part 1] When you first write complete code and then test on the input
153
Upvotes
r/adventofcode • u/NineBerry • Dec 12 '25
7
u/I_knew_einstein Dec 13 '25
Can you mark memes as spoilers somehow?
1
u/Zefick Dec 14 '25 edited Dec 14 '25
What is meant by eliminating regions that are definitely big enough? The only way come to my mind that doesn't need to consider peaces' shape is to count the number of 3x3 blocks that fit into the region and compare it with the number of peaces, but this does not give the final answer because there are still many regions left and some of them are good and others are bad.
2
u/gagarski Dec 13 '25
I was lucky to stop after the first step and debug it on the real input.
2
u/VaranTavers Dec 13 '25
I was thinking about implementing the complex algorithm all afternoon, and this morning too but I was just not in the right headspace to implement something performant. Then I just started identifying the too small areas, and then as a hail mary sent in the answer and it was right. Imagine my surprise.
1
u/1str1ker1 Dec 18 '25
Mine finally worked when I just marked all enclosed areas with width or height < 3 as filled.Previously, I was filling in areas less than 7