day 22 - advent of code 2024

  Рет қаралды 660

chris biscardi

chris biscardi

Күн бұрын

Пікірлер: 7
@flwi
@flwi Ай бұрын
Nice! I was yelling at the screen "only the first occurrence!!", since I got lucky and caught this tiny information snippet on first read through the instructions. I liked the session about the performance optimization. I'm not familiar with divan and learned a lot. Especially that there is a thing that allocates things in rust and you can influence how it behaves ;-)
@flwi
@flwi Ай бұрын
oh, btw - there was an easy speed gain by using rayon for the iterator over the seeds. Had to replace the outer fold by reduce. Time for part 2 came down from 192ms to 47ms.
@GelidGanef
@GelidGanef Ай бұрын
This series is the only reason i know what day it is in December or have had the impetus to do any of my Christmas shopping
@AhmadAli-kv2ho
@AhmadAli-kv2ho Ай бұрын
Its already day 22??? Damn time flies lol
@Moof_Woof
@Moof_Woof Ай бұрын
Medium spoilers for day 21: There's probably lots of ways to solve the day (memoization perhaps?), but there was one realisation that made the day bearable for me: Keypad inputs always Start and End on A. This means that there's so much state that can just be ignored. More in depth spoilers: You don't even need to keep the order you do the button presses, A robot at stage X needs to press a specific button Y times, which is all you need to know to calculate how many button presses that took for the robot at stage X+1. I did need to mess about with the order of inputs to this calculate function to avoid going into the invalid blank space, probably what I spent most time on. I do agree that I didn't really enjoy the puzzle. And I waited until today to tackle it.
@funkyprogrammer8005
@funkyprogrammer8005 Ай бұрын
Which IDE is this? Thx.
@chrisbiscardi
@chrisbiscardi Ай бұрын
@@funkyprogrammer8005 vscode with basically everything turned off and a right hand sidebar
day 23 - advent of code 2024
50:00
chris biscardi
Рет қаралды 541
12 months with the Bevy Game Engine - This Year in Bevy 2024
9:23
chris biscardi
Рет қаралды 10 М.
Counter-Strike 2 - Новый кс. Cтарый я
13:10
Marmok
Рет қаралды 2,8 МЛН
day 24 - advent of code 2024
58:34
chris biscardi
Рет қаралды 886
FLCNOS: Cpu identification
1:21:58
Falcon Code
Рет қаралды 304
Catching up with async Rust
17:55
fasterthanlime
Рет қаралды 30 М.
Throwing Boxes at Boxes
4:02:27
chris biscardi
Рет қаралды 1,2 М.
The fastest CPU in the world
25:53
Linus Tech Tips
Рет қаралды 2,3 МЛН
Coding Adventure: Rendering Text
1:10:54
Sebastian Lague
Рет қаралды 828 М.
God-Tier Developer Roadmap
16:42
Fireship
Рет қаралды 7 МЛН
CompTIA A+ Certification Video Course
3:50:46
PowerCert Animated Videos
Рет қаралды 7 МЛН
day 25 - advent of code 2024
13:42
chris biscardi
Рет қаралды 753