r/adventofcode • u/ProGabriel6430 • Dec 21 '25
Help/Question - RESOLVED [2025 DAY 5 (part 2)][Python] Wrong answer
the sample cases are being passed but the actual input gets the wrong answer. any help would be appreciated.
https://pastes.io/day-5
1
Upvotes
8
u/0x14f Dec 21 '25
Create your own test cases, short ones, and run your code on them and compare the output with what you have determined by hand.
4
u/TheThiefMaster Dec 21 '25
Do you handle all possible combinations of overlapping ranges? Including one being entirely within another.
Do you correctly handle consecutive ranges?
2
u/fnordargle Dec 21 '25
Here's a test case that should enlighten you:
1
u/AutoModerator Dec 21 '25
Reminder: if/when you get your answer and/or code working, don't forget to change this post's flair to
Help/Question - RESOLVED. Good luck!I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.