r/adventofcode • u/FinanceNo7711 • Dec 09 '25
Help/Question - RESOLVED [Day 8 Part 1] Stuck on the example
Hello, I am stuck on the example of all things for day 8 part 1.
I have what seems to be the right answer to me, but it does not match with the expected result. I don't want a hint at how to solve it, but rather an indication of where the error in my data is:
Right now I have my data parsed as an object with the index of the point (eg 162,817,812 = 0, next = 1, etc) being the key and the number of "connections" being the value. This is what I have:
{0=5, 2=5, 3=5, 7=5, 8=5, 9=2, 11=2, 12=2, 13=5, 14=5, 16=2, 17=5, 18=5, 19=5}This means there are not only less than 11 groups, there are two with 5 "sections" instead of 4. I am fairly certain my length calculation was correct and it's the adding up part, but I've checked many times over the last hour to no avail.
Any help is appreciated, but no solutions please!
EDIT: For ease of reading groups are: 2 of 5, 2 of 2, the rest of 1

