Advent of Code 2024 | Day 15 "Warehouse Woes"

  Рет қаралды 1,151

HyperNeutrino

HyperNeutrino

Күн бұрын

Пікірлер: 8
@GregorGramlich
@GregorGramlich 8 сағат бұрын
12:00 As you mention multiple times that the problem statement says that the robot is twice as wide. It does not, it says "everything except the robot is twice as wide!" Thanks for taking the time to record your solutions and explanations. I've learned a lot.
@hyper-neutrino
@hyper-neutrino 30 минут бұрын
oh wow reading is clearly not my strong suit
@bloodypeanuts2593
@bloodypeanuts2593 Сағат бұрын
Modifying the list during the loop is brilliant! This removes like 90% of my use cases for simple deque queues
@oldmajor5240
@oldmajor5240 9 сағат бұрын
Fun fact: You can also do part 2 in place. I just did a normal bfs to find which of the boxes will be moved and then if there is no blockage, I just iterated over the boxes in reverse temporal order. This way, you don't have to worry, about overlapping boxes :)
@eavdmeer
@eavdmeer 2 сағат бұрын
In the first part, the robot doesn't need to be added to the *target* list, as it will be moved separately. Also, you only need to add the *last* box in the *target* array to the grid. No sense overwriting 'O' with 'O' for the other entries. Of course, that doesn't work for part 2. I used a BFS for part 2 and moved everything in reverse order
@FirSouL3
@FirSouL3 8 сағат бұрын
Would't iterating over reversed(targets[1:]) fix the need of the copy?
@juanecoperu
@juanecoperu 12 сағат бұрын
Thanks for your videos man
@MagicWazam
@MagicWazam 10 сағат бұрын
I think she asked to avoid using “man“ or “dude“ to refer to her :)
Advent of Code 2024 | Day 13 "Claw Contraption"
16:43
HyperNeutrino
Рет қаралды 2,9 М.
Stop using std::vector wrong
23:14
The Cherno
Рет қаралды 156 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 3 МЛН
One day.. 🙌
00:33
Celine Dept
Рет қаралды 79 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
37:51
bayGUYS
Рет қаралды 1,3 МЛН
Coding Adventure: Rendering Text
1:10:54
Sebastian Lague
Рет қаралды 772 М.
Advent of Code 2024 Day 15 - 2nd Place!
28:37
Neil Thistlethwaite
Рет қаралды 1,8 М.
Building a todo app: before and after Verbs
26:07
Chris Morrell
Рет қаралды 755
Every programming language explained in 15 minutes | Prime Reacts
43:42
Clean Code - Uncle Bob / Lesson 2
1:06:01
UnityCoin
Рет қаралды 514 М.
I Made an Electronic Chessboard Without Turns
14:32
From Scratch
Рет қаралды 953 М.
Advent of Code 2024 | Day 14 "Restroom Redoubt"
15:49
HyperNeutrino
Рет қаралды 2,2 М.
Keynote: Advent of Code, Behind the Scenes - Eric Wastl
46:01
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 3 МЛН