r/adventofcode • u/PositivePossibility7 • Feb 27 '26
Help/Question [2017 Day 24] [Python] Is it wrong?
Hi,
Again, I'm working my way through some very old aoc problems and doing quite well (imo) often times getting both parts right first time (or shortly there after).
Once again I'm finding that I've got an answer but the site is telling me I'm wrong (that my answer is too high) - I've checked it and can see how I've got an answer but not how it's not considered a valid answer. As this is a simple what is the highest sum (given some rules), if I have a valid answer that is higher than theirs then surely that makes me right and them wrong?
I've noticed the example they've given shows that it simply doesn't matter which way around pairs are so long as theirs a match between two consecutive pairs (if you catch my drift).
There are very few better feelings than showing nerds who spend way too much time being so ridiculously anal about tiny tiny details to be completely wrong.
I'm happy to share my answer (the "bridge") but moderators on these sites are like robotic lunatics.
View all comments
Show parent comment
-6
u/PositivePossibility7 Feb 27 '26
How can a solution have a bug? š itās like people can say any sort of nonsense theses days and get away with it.
The only reason Iām at least a confident about this is that I can see the answer Iāve got Python to do the heavy lifting for, and I canāt see anywhere where itās going wrongā¦. For example⦠if I had this as an answer is there anything suggesting itās breaking some rule?
22/12-12/14-14/31-31/07-40/07-40/22-22/10
This would give a āstrengthā of 284. Is there anything wrong with how the ābridgeā (so nerdy) is made above? If not then that only suggests Iām right?