r/PowerShell • u/dantose • Dec 05 '25
Advent of code day 5
I'm a day and a half behind, but how's everyone else doing?
12
Upvotes
r/PowerShell • u/dantose • Dec 05 '25
I'm a day and a half behind, but how's everyone else doing?
View all comments
Show parent comment
1
u/dantose Dec 05 '25
I'm still poking at 4. Mapping types ones generally throw me, but I'm making progress. Looking at day 5, at least part one looks pretty straightforward. Split the data set on the empty line, then just $_ -in $range. The number length in input.txt might be tricky due to data types, but could probably split the ranges and -le and -ge them.