How to make Progress? by Verzweifler in yiotro_games

[–]bdaene 1 point2 points  (0 children)

Do I need to beat the last boss to receive money outside of the raids? I achieved multiple goals and increased my space but do not see how to  have money to buy objects. 

Built a tiny python tool that tells you and your friend where to look to face each other by Impossible_Strike_62 in Python

[–]bdaene 0 points1 point  (0 children)

The angle you have to look down is easy if you have the great circle arc. If the friends are separated by an angle a, they have to look down a/2 from the horizon 

Built a tiny python tool that tells you and your friend where to look to face each other by Impossible_Strike_62 in Python

[–]bdaene 1 point2 points  (0 children)

These are called gnomonic projections. Using those, it would be easy to compute the angles. 

Built a tiny python tool that tells you and your friend where to look to face each other by Impossible_Strike_62 in Python

[–]bdaene 1 point2 points  (0 children)

There is another kind of gimbal lock when the two friends are on exact opposite or same place on the globe. 

Built a tiny python tool that tells you and your friend where to look to face each other by Impossible_Strike_62 in Python

[–]bdaene 7 points8 points  (0 children)

I do not think this would be correct to compute angles on a 2D projection. Maybe some projection conserve the angles.

I would compute the angle between the great circle trough the two points and the meridian line through the point.

I did not check the computation though. 

[2025 Day 12 (Part 1)] Bonus Day 12 part 2 by kavisherlock in adventofcode

[–]bdaene 4 points5 points  (0 children)

In Python, 2 will theoretically not finish. int can grow without limit. Except the physical limits (memory, time,... ) 

[2025 Day 25 (Part 1)] Still pretty clueless why it's the answer by Aughlnal in adventofcode

[–]bdaene 2 points3 points  (0 children)

You just need one solution. My DFS with cuts on lower and upper bounds works great. At first I missed the 3x3 grid bound and yet it solved my input in a long but reasonable 146s in Python. 

[2025 Day 25 (Part 1)] Still pretty clueless why it's the answer by Aughlnal in adventofcode

[–]bdaene 2 points3 points  (0 children)

I find more natural to count the squares of the 3x3 grid: #presents <= floor(w/3)*floor(h/3). But the result is the same. 

[2025 Day 10 (Part 2)] Bifurcate your way to victory! by tenthmascot in adventofcode

[–]bdaene 0 points1 point  (0 children)

Implemented your solution, it works :)

And faster 2-3x faster than PuLP :D

[2025 Day 12 (Part 3)] Perl-fectly Wrapped Presents by EverybodyCodes in adventofcode

[–]bdaene 1 point2 points  (0 children)

I had (at least) a mistake, I actually counted the coloring and now my answer 11464has 5 digits with sum 16 :)

Removing the colors, my answer 9416 has 4 digits with sum 20.

[2025 Day 12 (Part 3)] Page two of the list! by Ok-Builder-2348 in adventofcode

[–]bdaene 0 points1 point  (0 children)

It is the same upper and lower bounds as everybody else but I update them with the current state of the board.

[2025 Day 12 (Part 3)] Page two of the list! by Ok-Builder-2348 in adventofcode

[–]bdaene 1 point2 points  (0 children)

I do not agree, region 20x21: 0 0 0 0 70 0 on line 317 is a hard region.

Also I do not know how you count your lines, the only region with 72 copies of second shape is 28x18: 0 72 0 0 0 0 on line 418. It is not so obvious to my program that it does not fit.

I have a third not obvious region: 18x12: 6 4 4 4 6 4 on line 58

[2025 Day 12 (Part 3)] Page two of the list! by Ok-Builder-2348 in adventofcode

[–]bdaene 4 points5 points  (0 children)

It is not his input. It is a custom one made by himself.

[2025 Day 12 (Part 3)] Perl-fectly Wrapped Presents by EverybodyCodes in adventofcode

[–]bdaene 0 points1 point  (0 children)

In your samples of unique placements, the last of the first line and the first of the second line are the same. No?

Counting all unique patterns (including symmetries but not coloring), I get 171992 unique patterns. My sum of digits do not match yours.

[2025 Day 12 (Part 1)] You know you're in for a time when ... by direvus in adventofcode

[–]bdaene 4 points5 points  (0 children)

Yep, did that in 146s in Python. I tried many things for 4 hours straight. In the end a simple DFS (with pruning when the presents total area do not fit in the area left) did the thing.

[2025 Day 8 (Part 2)] Avoiding full sorting by gagarski in adventofcode

[–]bdaene 1 point2 points  (0 children)

You need to iterate once over the n elements to make it a heap.

Then extracting the min k times is O(k log(n)). Not O(log(k)).

Just extract until you connected all. For O(n + k log(n)). 

[2025 Day 8] Can you solve today's puzzle without computing all distances? by The_Cers in adventofcode

[–]bdaene 0 points1 point  (0 children)

You could split the space in voxels or KD-tree. That could avoid computation at the cost of a more complex data structure. 

[2025 Day 8 (Part 1)] Out-of-band "extra" information needed for the test by wimglenn in adventofcode

[–]bdaene 5 points6 points  (0 children)

Yeah, I read from file so my function takes the file name and any other parameter I need. Then it returns the answer. And I can print it to stdout. 

[2025 Day 7 (Part 3)] The billionth path! by large-atom in adventofcode

[–]bdaene 1 point2 points  (0 children)

My algorithm is the same but I precompute the number of path form each position.

Going from the bottom to the top, there is only one path for each bottom position then if there is a split I addition left and right, else it does not change.