this post was submitted on 01 Dec 2023
126 points (96.3% liked)

Advent Of Code

1086 readers
1 users here now

An unofficial home for the advent of code community on programming.dev!

Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

AoC 2024

Solution Threads

M T W T F S S
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25

Rules/Guidelines

Relevant Communities

Relevant Links

Credits

Icon base by Lorc under CC BY 3.0 with modifications to add a gradient

console.log('Hello World')

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] abbadon420@lemm.ee 9 points 2 years ago (3 children)

I've solved part 2 multiple times now, but small intricacies keep popping up every time.

[–] Cyno@programming.dev 2 points 2 years ago (2 children)

I'm stuck on one of these intricacies now! I saw some of the ideas on how other people did it but i honestly have no clue what i did wrong. Got any tricky examples to share?

[–] abbadon420@lemm.ee 3 points 2 years ago (1 children)

I just solved it. I printed every set of integers in the format "Result: [theTwoDigits], from string: [inputString]" and mannually checked all of them. Eventually found the edge case that was causing troubles. It was a typo.

[–] Cyno@programming.dev 3 points 2 years ago

Oh god, sorry to hear that 😅i'm feeling desperate enough to try that, i just wrote a different implementation and i get the same (wrong) result. At this point I just want to know what i misunderstood or mistyped cuz its driving me crazy