r/PowerShell • • Dec 08 '25

Advent of Code, Day 8

Just pulled it up. Time to dust off your trigonometry.

I'm probably going to post through my thoughts on it.

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

6 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/dantose Dec 08 '25

One small optimization is you can skip doing the square route. Just leave it as distance^2. If part 2 ends up being something that requires actual distance, you can find the square root at the end.