mykl@lemmy.world to Advent Of Code@programming.dev · 11 months ago[2023 Day 3] Motivation time!lemmy.worldimagemessage-square23fedilinkarrow-up1102arrow-down18file-text
arrow-up194arrow-down1image[2023 Day 3] Motivation time!lemmy.worldmykl@lemmy.world to Advent Of Code@programming.dev · 11 months agomessage-square23fedilinkfile-text
minus-squareUndercoverUlrikHD@programming.devlinkfedilinkarrow-up2·11 months agoHmm, I did it the opposite. Found every number and passed a list of every adjacent position of the number to check for non-digit/dot/non-whitespace. Took a bit longer to solve part 2 due to that approach though.
minus-squareBlack616Angel@feddit.delinkfedilinkarrow-up1·11 months agoIn that case I was kinda lucky. But it looked more second-partly to do it that way. 😂
Hmm, I did it the opposite. Found every number and passed a list of every adjacent position of the number to check for non-digit/dot/non-whitespace.
Took a bit longer to solve part 2 due to that approach though.
In that case I was kinda lucky.
But it looked more second-partly to do it that way. 😂