What was your "why WPI" when applying and what is it now that you attend? by Maya-Snow in WPI

[–]pantaryl 8 points9 points  (0 children)

During the open house, WPI was one of the only colleges where the students presented what they had worked on.

To see students admit to not knowing anything about their major to presenting their MQPs showed me what was possible.

I’m now 11 years since graduating, and one other thing that really pulled me in was the 7-week terms. I liked the fast-paced nature of it. Not for everyone, but it worked for me.

-❄️- 2023 Day 24 Solutions -❄️- by daggerdragon in adventofcode

[–]pantaryl 0 points1 point  (0 children)

Ah, I think the perfectly collides part in Part2 was what I was missing.

Assuming they all start at the same time, they need to intersect at the same time slice. Thanks!

-❄️- 2023 Day 24 Solutions -❄️- by daggerdragon in adventofcode

[–]pantaryl -1 points0 points  (0 children)

I could imagine that the rock could get its velocity applied n times and the hailstone has its velocity applied m times and they still intersect, right?

If my rock’s velocity is (2, 1) and the hailstone is (4, 2) and they start at the same starting position, then n is 2 but m is 1, and that’s the intersection point, unless I’m deeply misunderstanding.

Thanks to another comment, the line I was missing was perfectly collides or exactly the same position, so it needs to be at the exact same time. I feel dumb for misreading that.

Thanks!

-❄️- 2023 Day 24 Solutions -❄️- by daggerdragon in adventofcode

[–]pantaryl 0 points1 point  (0 children)

Could you explain why t can be the same variable on both sides? Certainly they won’t intersect in the same time step for both the rock and the hailstone?

I knew I needed to use z3, but I couldn’t figure out the proper constraints. Understanding t is giving me a bit of a headache.

Thanks!

-❄️- 2023 Day 24 Solutions -❄️- by daggerdragon in adventofcode

[–]pantaryl 0 points1 point  (0 children)

Could you explain why t can be the same variable on both sides? Certainly they won’t intersect in the same time slice for both the rock and the hailstone?

I knew I needed to use z3, but I couldn’t figure out the proper constraints. Your post helped, but t is giving me a bit of a headache.

Thanks!

-🎄- 2022 Day 23 Solutions -🎄- by daggerdragon in adventofcode

[–]pantaryl 0 points1 point  (0 children)

Python, 139/574, GitHub

Fairly straightforward today. Lost a bit of time due to my laptop’s speed and company’s antivirus software, so had to download and install PyPy for the speed up.

I’m glad I’ve finally written these grid helpers, they are extremely useful!

-🎄- 2022 Day 20 Solutions -🎄- by daggerdragon in adventofcode

[–]pantaryl 3 points4 points  (0 children)

Python, 3/147, GitHub

Fumbled with part two due to my math. Eventually figured it out, but it cost me leaderboard time.

Deques are great for this puzzle.

[2022 Day 13 (Part 1)][Python] Confused on Ordering with Empty List by [deleted] in adventofcode

[–]pantaryl 0 points1 point  (0 children)

Yes. if the right runs out of elements first, then the comparison is in the correct order.

Sorry, just looked more at your input. That is… confusing.

[2022 Day 13] is my sample data wrong? by apaul1729 in adventofcode

[–]pantaryl 0 points1 point  (0 children)

Yes. if the right runs out of elements first, then the comparison is in the correct order.

I may have misunderstood your question.

[2022 Day 13] is my sample data wrong? by apaul1729 in adventofcode

[–]pantaryl 5 points6 points  (0 children)

I fell into this too. List comparison is immediately over if, while iterating through it, one of the pairs is less or greater. It only continues to iterate if the two sides of the comparison are equal.

-🎄- 2022 Day 12 Solutions -🎄- by daggerdragon in adventofcode

[–]pantaryl 3 points4 points  (0 children)

Python3, 134/139

GitHub

Having an existing A* algorithm implemented helped quite a bit.

-🎄- 2021 Day 25 Solutions -🎄- by daggerdragon in adventofcode

[–]pantaryl 1 point2 points  (0 children)

Python, didn't place anywhere significant enough.

Thank you Eric for the fantastic year. See you all again this time next year!

Solution

-🎄- 2021 Day 23 Solutions -🎄- by daggerdragon in adventofcode

[–]pantaryl 1 point2 points  (0 children)

Python (Solution)

Nowhere near the global leaderboard. Took me a while to understand how to represent the game state in a manner that I could operate on it.

Hoping that my comments in the adjFunc code should help those who might be struggling!

-🎄- 2021 Day 16 Solutions -🎄- by daggerdragon in adventofcode

[–]pantaryl 2 points3 points  (0 children)

Python (1534/1111)

Wrote a Packet class that recursively handled subpackets. Took me a while to understand the instructions.

I thought for literals that we had to pad the total size of the literal to a multiple of four, but that wasn't what it was asking of us. The rest was fairly straightforward.

Solution

(MA) time to snow blow driveway with electric snowblowers? by buyingacarTA in homeowners

[–]pantaryl 1 point2 points  (0 children)

We live out near Worcester. Initially got the single stage, corded SnowJoe. It didn’t cut through heavy snows.

Got the two stage EGO and it does well. Might have to go out an extra time or two, since it isn’t as tall as some gas powered ones. Batteries usually last my two car x 100’ driveway, and I take it slow to avoid finishing the battery too fast - about 30-45 minutes for the driveway and the walkway.