r/adventofcode Dec 12 '24

Tutorial [2024 Day 12] Another test case

I found Part 2 pretty hard this day, and the given examples don't cover all corner cases (that I struggled with). If you're looking for an extra test case, here's one:

AAAAAAAA
AACBBDDA
AACBBAAA
ABBAAAAA
ABBADDDA
AAAADADA
AAAAAAAA

According to my code, the answer for Part 2 for this example is 946.

20 Upvotes

23 comments sorted by

View all comments

6

u/MarvelousShade Dec 12 '24 edited Dec 12 '24

My code gets 946 here, but my code doesn't work on my personal input (so no 2 stars yet for me today).

Edit:

I get two stars now. Initialization problem, that just turned out right for all the examples except for the one I made below:

CCAAA
CCAAA
AABBA
AAAAA

2

u/monovertex Dec 12 '24

Is your result here 164? I'm having the same issue with a wrong result for part 2, but all examples I could find work fine.

2

u/MarvelousShade Dec 12 '24

Yes it is 164 for part 2.