Files
aoc-2025/day02/notes.md
2025-12-03 00:04:09 -05:00

488 B

Day 2: Gift Shop

This got a bit frustrating with the regex in the second part.

It only took about 30 minutes to solve first part, but my answer involved literally splitting strings, so it didn't work for arbitrary matches and had to be replaced by a regex solution. After struggling with the regex for another 30 minutes, I put it away until the next day, when a 5-minute web search lead me to the fix for my bad regex.

JS Solutions

cd js
node day01a.js
node day01b.js