mykl@lemmy.world to Advent Of Code · 1 year 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 · 1 year agomessage-square23fedilinkfile-text
minus-squareUndercoverUlrikHDlinkfedilinkarrow-up2·1 year 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·1 year 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. 😂