day 6 complete!
This commit is contained in:
@@ -4,9 +4,12 @@ Puzzle 1 took me 30-ish minutes to figure out. I initially tried building an arr
|
||||
|
||||
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.
|
||||
|
||||
_UPDATE:_ I came back to it the next night and realized what I was doing wrong - my algorithm was both overspecified and incomplete. The fix was to simplify things, exclude ranges that don't overlap, and then merge any that do. Another 15 minutes and it was solved.
|
||||
|
||||
### JS Solutions
|
||||
|
||||
```
|
||||
cd js
|
||||
node day05a.js
|
||||
node day05b.js
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user