r/PowerShell • • Dec 07 '25

Advent of Code Days 6 and 7

I'm still behind, but how's everyone else doing?

Squid math: Looks like a basic indexing one. Part 1 looks pretty straight forward

https://adventofcode.com/2025/day/6

Laser Beams: Another map type one, so I'll probably need some time to grumble about it.

https://adventofcode.com/2025/day/7

3 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/Future-Remote-4630 Dec 11 '25

The trick is to count how many paths go to any given coordinate, then use that to determine how many paths go to the next row. It's an array of arrays of integers, where you sum the last array to get the answer.