Advent of Code 2024 Day 21

  Рет қаралды 2,735

Neil Thistlethwaite

Neil Thistlethwaite

Күн бұрын

Пікірлер: 13
@neoeno4242
@neoeno4242 21 күн бұрын
Wonderful to see your problem solving going through this ‘live’ - very instructive, particularly on this problem. So glad you’re uploading these.
@bikkel77
@bikkel77 20 күн бұрын
I think the reason why some paths are cheaper than others is mainly due to the left command (
@urban24
@urban24 20 күн бұрын
"Can we move the robot arm over empty tiles? It doesn't actually matter for this part I think" - famous last words
@artemistrubacheev7704
@artemistrubacheev7704 23 күн бұрын
A really tough one! I misinterpreted part of the lore where it says “-40 degrees” and for like 3 minutes thought I will have to type on a rotated keypad :D
@NStripleseven
@NStripleseven 22 күн бұрын
Yea some of the stuff I don’t know why they bolded
@Bundas102
@Bundas102 22 күн бұрын
This day's part2 was the first time this year that I couldn't do it in one sitting. I had to relax a bit and do something else bc it broke my brain :D Definitely the hardest one so far
@cedw
@cedw 23 күн бұрын
World class thumbnail
@MattDog_222
@MattDog_222 22 күн бұрын
Using some inspiration from memoized solutions on reddit i basically had `static long cheapestMove(int start, int end, int upstreamRobots, int deadzone)` which generates the ways to move from start to end index, ignoring deadzone, and finds the min of those by calling a helper method(String sequence, int upstream) which recursively invokes the cheapestMove for each move in the sequence. And cheapestMove memoizes the result of all 4 args.
@yemiez
@yemiez 23 күн бұрын
This one sure made my head hurt a lot, it took me wayyyyyy to long to realise the shortest sequence for any N robot doesn't matter if it doesn't produce the shortest sequence of another later one..
@NStripleseven
@NStripleseven 22 күн бұрын
That’s a critical piece. There are so many sequences that look equivalent lengthwise but aren’t because all but one screw you over when you’re generating a robot’s input earlier in the chain.
@God-i2
@God-i2 23 күн бұрын
HAHA, you can tell from thumbnail if Neil had an easy time with the problem or not😂
@joule162534
@joule162534 22 күн бұрын
i have solved it but took me several hours... my solution for part 1 was very sub-optimal and i had to come up with a different approach for part 2. not happy with this day but at least solved
Advent of Code 2024 | Day 21 "Keypad Conundrum"
53:18
HyperNeutrino
Рет қаралды 4,2 М.
Advent of Code 2024 Day 22
31:43
Neil Thistlethwaite
Рет қаралды 1,3 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Advent of Code 2024 Day 24 - 12th place!
51:54
Neil Thistlethwaite
Рет қаралды 2,9 М.
Catching up with async Rust
17:55
fasterthanlime
Рет қаралды 28 М.
Destroying everyone else in Advent of Code 2021 Day 22
19:08
Neal Wu
Рет қаралды 268 М.
One second to compute the largest Fibonacci number I can
25:55
Sheafification of G
Рет қаралды 451 М.
Eric Wastl - Advent of Code: Behind the Scenes
1:00:48
tretton37
Рет қаралды 14 М.
The Genius Way Computers Multiply Big Numbers
22:04
PurpleMind
Рет қаралды 277 М.
Advent of Code 2024 | Day 24 "Crossed Wires"
58:52
HyperNeutrino
Рет қаралды 3,4 М.
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 151 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН