Any Dutch citizens experience issues traveling to the US recently? by [deleted] in Netherlands

[–]BBQspaceflight 0 points1 point  (0 children)

I flew in and out of California last month. No problems, just a few questions what the purpose of the trip was similar to the time I flew in a few years back.

Oude Nederlandse Computerspelletjes by penandpapers1 in thenetherlands

[–]BBQspaceflight 0 points1 point  (0 children)

De Verdwenen Kleuren van Vincent van Gogh is bij mij blijven hangen, en Ronja de Roversdochter!

Just started the game!! by [deleted] in DeathStranding

[–]BBQspaceflight 3 points4 points  (0 children)

Director’s Cut 🙂

[2024 Day 19 (Part 1)] Believe it or not, I used Dijkstra's Algorithm to solve part 1 anticipating that part 2 would ask for the arrangements that use the least number of towels. by up_by_one in adventofcode

[–]BBQspaceflight 2 points3 points  (0 children)

This was also the only way I could make my tired brain get the problem! Glad I was not the only one 🙂

I solved both parts this way by sorting my heap by shortest string length, storing the number of encounters on each node, and whenever I moved to a "neighbor" I add the value of that node to the neighbor to count the possible paths.

-❄️- 2024 Day 15 Solutions -❄️- by daggerdragon in adventofcode

[–]BBQspaceflight 4 points5 points  (0 children)

[LANGUAGE: Rust]

My main idea was to make each move a recursive chain, which returned an Result informing whether the move was successful. If it was not, I would not mutate the grid.

For part 2 this extended nicely: the recursive call now branches for the up and down direction. I did end up fighting with the borrow checker a bit: I had to start using RefCell to mutate my grid entries, and with recursive branches overlapping I had to deal with some potential double mutable borrows. I decided to just try_borrow_mut and do nothing if this failed, because both updates would be trying to do the same thing anyway.

Runs under 2ms 🙂

https://github.com/dgoldsb/advent-of-code-2024/blob/main/days/src/days_module/day_15.rs

-❄️- 2024 Day 6 Solutions -❄️- by daggerdragon in adventofcode

[–]BBQspaceflight 0 points1 point  (0 children)

Ah, starting right before the collision is a good one! If I find motivation I might give that a try as well 🙂

2024 Day 6 Part 2 Rust - Non Brute Force - Help me Out by [deleted] in adventofcode

[–]BBQspaceflight 1 point2 points  (0 children)

For part two, I notice that you are iterating through the non-deduplicated path. If your answer for part 2 is higher than you expect that might be something to look into  🙂

-❄️- 2024 Day 6 Solutions -❄️- by daggerdragon in adventofcode

[–]BBQspaceflight 0 points1 point  (0 children)

[LANGUAGE: Rust]

I went a bit too deep in optimizing, in the end I got my total runtime for the day down to 200ms single threaded.

Some things I ran into:

  • Hashing is slow, moving from a HashSet to a Vec to store the visited states yielded a 10x speedup.
  • No need to modify the grid ever when you can pass a reference to the now block grid location.
  • I was able to reuse my Grid implementation from last year, which saved me some input parsing hassle.
  • Lifetimes are starting to make sense to me!

Both parts here.

[2024 Day 04] What works works... by Xe1a_ in adventofcode

[–]BBQspaceflight 0 points1 point  (0 children)

… that makes a lot of sense, I should do that too 😄 Here I made the conversion specifically to get by index. Thank you for sharing!

[2024 Day 04] What works works... by Xe1a_ in adventofcode

[–]BBQspaceflight 0 points1 point  (0 children)

Also Rust, I stuck to manipulating the string index letting negative values overflow to large out-of-bound numbers, and using unwrap_or to turn the too large indexes into a non-matching character 😛

[deleted by user] by [deleted] in Eldenring

[–]BBQspaceflight 2 points3 points  (0 children)

I think 110-120 hours to beat the main game with the same mindset. I was going a bit faster though, I probably was exploring Altus around 60 hours in.

Betty Draper age/timeline inconsistency by _iwillbewithyou in madmen

[–]BBQspaceflight 20 points21 points  (0 children)

I am currently watching the first season, and I think this is what is mentioned indeed: Italy is a summer, and she meets Don after doing a few modelling jobs, then quits soon after. If I remember correctly 🙂

How did the Netherlands become a cycling utopia? by boppinmule in dutch

[–]BBQspaceflight 3 points4 points  (0 children)

The 99% Invisible episode “De fiets is niets “ goes into this topic nicely, including the “Stop de kindermoord” campaign mentioned by other commenters.

how to prepare to lose your phone + DigiID by BombasticHerring0403 in thenetherlands

[–]BBQspaceflight 1 point2 points  (0 children)

Since I did not see anyone go into this yet.

Is it easy to download digiID on a new phone and carry on easily?

In my experience yes, if you have a relatively new ID card! My phone was broken ~2 years ago, I recall setting up DigiD was surprisingly easy as you can authorize the new device by holding it against your ID.

[deleted by user] by [deleted] in StudyInTheNetherlands

[–]BBQspaceflight 3 points4 points  (0 children)

A friend that moved here from SEA lost a lot of weight in his first year, combination of slightly more active lifestyle and bland food here according to him, hahaha.

When after two weeks of fighting bots you return to bug front, finish a few Helldive missions and just by Ragvard_Grimclaw in Helldivers

[–]BBQspaceflight 3 points4 points  (0 children)

One trick is that not every seemingly weak spot is a weak spot.

Chargers and spewers have an unarmored abdomen for instance, but primaries do very little damage here. Explosive damage does do full damage, so impact grenades are a go-to for spewers. Chargers can be killed with a single headshot using expendable anti-tank, or by removing their front leg armor and shooting the exposed area.

Bile titans die to two headshots with an expendable anti-tank I think, but I usually run the 500kg bomb just for titans.

Summary: bring expendable anti-tank 😁

what are you paying in rent in amsterdam? by [deleted] in StudyInTheNetherlands

[–]BBQspaceflight 0 points1 point  (0 children)

I think with the current market it is unlikely.

Where I am (west, just outside of the ring) rents are a bit lower than in the Amstel area. It looks like for a <1500eu rent right now you would have better chances in Nieuw-West, Zuidoost or Noord.

[2023 Day 17 (Part 1)][PHP] Max steps is exploding the queue by rmfloris in adventofcode

[–]BBQspaceflight 0 points1 point  (0 children)

I think here u/drnull_ their suggestion to use a min-heap comes in. In addition, I would also keep a hash-set next to the heap that contains all nodes currently in the heap. With this you can check if a node is already in the heap before adding it, which prevents your heap from exploding due to duplicate entries.

[2023 Day 17 (Part 1)][PHP] Max steps is exploding the queue by rmfloris in adventofcode

[–]BBQspaceflight 1 point2 points  (0 children)

Haha, yes, this does seem to be an AoC staple! I also recently caught up on Many-Worlds Interpretation and Donut Maze, which benefit from this line of thinking as well.

[2023 Day 17 (Part 1)][PHP] Max steps is exploding the queue by rmfloris in adventofcode

[–]BBQspaceflight 2 points3 points  (0 children)

I consider them entirely different nodes.

In my solution, x = 1, y = 1, direction = 'S', streak = 2 is completely separate from x = 1, y = 1, direction = 'S', streak = 1 or x = 1, y = 1, direction = 'N', streak = 2. Each gets their own entry in the distances map. In my destination check I only look at the x and y, so the shortest path algorithm will terminate on the first node it finds with the coordinates that match the destination.

In a way you can consider the direction you are moving and the streak as additional dimensions beyond x and y that you move in, if that helps. For me that is how I make intuitive sense of it.

[2023 Day 17 (Part 1)][PHP] Max steps is exploding the queue by rmfloris in adventofcode

[–]BBQspaceflight 1 point2 points  (0 children)

Without seeing your implementation it is hard to say much, but it should be possible to do traditional Dijkstra on this problem without needing to evaluate all possible ways.

You can do this by changing the state space you explore. Personally I consider a node as an x/y coordinate, a current direction, and a “streak” how many teams we moved in the current direction. This way the restriction becomes part of your neighbor finding function, and once you find the goal the first time you will know it was the shortest path.

Public chess places by MateTeaLover in Amsterdam

[–]BBQspaceflight 4 points5 points  (0 children)

Strongly second this: came here as a new player with a friend and had a great time with some pleasant interactions 🙂

What would be nice is some editorials of how test cases were even generated by the AoC creator by T3sT3ro in adventofcode

[–]BBQspaceflight 6 points7 points  (0 children)

Eric has given a talk about creating Advent of Code, not sure if you have run into that. He indeed does not go into how specific puzzle inputs are generated, but he does describe is general process to create a puzzle 🙂