r/PowerShell • u/dantose • 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.
6
Upvotes
r/PowerShell • u/dantose • Dec 08 '25
Just pulled it up. Time to dust off your trigonometry.
I'm probably going to post through my thoughts on it.
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.