update with day04 and first puzzle of day05

This commit is contained in:
2025-12-05 01:36:41 -05:00
parent 1b2b0f4edd
commit 93f795cd2c
8 changed files with 1640 additions and 1 deletions

12
day05/notes.md Normal file
View File

@@ -0,0 +1,12 @@
## Day 5: Cafeteria
Puzzle 1 took me 30-ish minutes to figure out. I initially tried building an array of numbers from the ranges, but it turned out to be _much_ easier to parse each range against each value and let the machine do the math.
Puzzle 2 seemed pretty straightforward, and I thought I had a simple solution, but it didn't work, and an hour later (1:30a), I have to admit defeat for tonight.
### JS Solutions
```
cd js
node day05a.js
```