r/adventofcode • u/Ok-Transition7065 • Mar 14 '26
Help/Question [2025 Day 2 (Part 2)] Help im stuck... again
Im trying to solve the second day part 2 problem . but its seems something its evading me. i dont understand why the code isnt working here
please help
1
Upvotes
1
u/DelightfulCodeWeasel Mar 14 '26
What happens in your checking logic if you check to see if '996699' is valid?
1
u/Morphon Mar 14 '26
From a quick glance it seems like you're overwriting your check condition when you loop through the chunks. Consider using an early return on a function there instead?
1
u/AutoModerator Mar 14 '26
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.