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?
3
u/TheZNerd Dec 05 '25
Honestly feeling like the difficulty ramp is not as steep as I envisioned for them cutting the puzzles to 12 this year…but maybe that means we’re in a for a few doozies toward the end…
1
u/dantose Dec 05 '25 edited Dec 05 '25
Ok, part 1 was about as straight forward as expected:
I figured I'd keep the IDs of the good ones in case it was relevant for part two, but no luck. Part 2 looks like a bit of a beast. I'm kind of thinking something like:
EDIT: I've got something that works for the sample data, but not for the full thing. Anyone got any idea where it's going off? EDIT 2: I'm an idiot. I left an explicit index in that I was using to test something. Fixed
3
u/PinchesTheCrab Dec 05 '25 edited Dec 05 '25
I went back and looked at the previous days and saw that people posted solutions, let me know if I should remove this. Here's my quickish take on part 1 today:
3
u/SrBlackVoid Dec 06 '25
This might be the fastest I've ever had a solution process before 😮(Problem 1):
https://github.com/SrBlackVoid/AdventOfCode2025/blob/main/Day%205/PowerShell/Problem%201.ps1
2
u/Future-Remote-4630 Dec 05 '25
Part 2 proved to be much more challenging. My approach was super overcomplicated and I ended up having to entirely scrap it.
Here is what NOT to do:
Attempt 2: doesn't quite work, overcomplicated