Advent of Code 2024 Day 14

  Рет қаралды 251

Programming Live with Larry

Programming Live with Larry

Күн бұрын

Пікірлер: 13
@Algorithmist
@Algorithmist 8 күн бұрын
How did you do today?
@sourabhkhandelwal689
@sourabhkhandelwal689 8 күн бұрын
Very fun problem
@ParthPatel-om4on
@ParthPatel-om4on 8 күн бұрын
I think the part 2 dupe solution working is a convenient consequence of how they generated your test case. They probably picked a random large number (your answer), some starting christmas grid (with no duplicates), and random velocities. From there, they simulate it (your answer number of times) going in the opposite directions of the velocities and give you those starting positions in your test case. The size of grid and number of robots make it so that the probability of there being duplicates in one cell is high, so by luck, only the initial configuration doesn't have duplicates.
@Algorithmist
@Algorithmist 8 күн бұрын
I can buy this!
@ИванЗадорожный-ъ7ы
@ИванЗадорожный-ъ7ы 8 күн бұрын
Hahaha Girl on the bed -Larry, are we gonna have fun? Larry looking for tree -I have a fun
@ИванЗадорожный-ъ7ы
@ИванЗадорожный-ъ7ы 8 күн бұрын
Ok, i've finished to watch. I solved second part counting square of each area of connected robots after each second and output to file only when there is he area more than 100.
@DocBolle
@DocBolle 8 күн бұрын
While searching I determined the maximum size of a cluster of adjacent robots. I stopped my search when there more than 25 robot positions neighboring each other. This led me to the X-mas tree 🙂.
@Algorithmist
@Algorithmist 8 күн бұрын
a lot of fun solutions to part 2!
@_aryan_570
@_aryan_570 8 күн бұрын
This is how I do these problems, sober.
@ИванЗадорожный-ъ7ы
@ИванЗадорожный-ъ7ы 8 күн бұрын
🤣
@cursed_nerd
@cursed_nerd 8 күн бұрын
Drunk Larry is Fun
@ParthPatel-om4on
@ParthPatel-om4on 8 күн бұрын
why not just do this tomorrow 🤣
@Algorithmist
@Algorithmist 8 күн бұрын
haha, clearly from the video I was not 100% decision making
Advent of Code 2024 Day 15
53:45
Programming Live with Larry
Рет қаралды 224
Learn Git Squash in 3 minutes // explained with live animations!
3:56
The Modern Coder
Рет қаралды 312 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Advent of Code 2024 Day 14 - 12th gold star!
16:32
Neil Thistlethwaite
Рет қаралды 3,4 М.
"Simple" Endgames You MUST KNOW
15:03
Chess Vibes
Рет қаралды 14 М.
Zero Array Transformation I - Leetcode 3355 - Python - Telugu
9:12
Top 5 Highest Win Rate Openings for White (2025)
16:50
Remote Chess Academy
Рет қаралды 8 М.
These smart glasses changed my mind.
8:47
Becca Farsace
Рет қаралды 13 М.
Cake Decorating Challenge | Funny Food Situations by BaRaDa Challenge
25:23
Magnus Carlsen is broken
27:32
GothamChess
Рет қаралды 536 М.