Advent of Code 2024 Day 14

  Рет қаралды 254

Programming Live with Larry

Programming Live with Larry

Күн бұрын

Пікірлер: 13
@Algorithmist
@Algorithmist 20 күн бұрын
How did you do today?
@sourabhkhandelwal689
@sourabhkhandelwal689 20 күн бұрын
Very fun problem
@ParthPatel-om4on
@ParthPatel-om4on 20 күн бұрын
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 20 күн бұрын
I can buy this!
@ИванЗадорожный-ъ7ы
@ИванЗадорожный-ъ7ы 20 күн бұрын
Hahaha Girl on the bed -Larry, are we gonna have fun? Larry looking for tree -I have a fun
@cursed_nerd
@cursed_nerd 20 күн бұрын
Drunk Larry is Fun
@DocBolle
@DocBolle 20 күн бұрын
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 20 күн бұрын
a lot of fun solutions to part 2!
@ИванЗадорожный-ъ7ы
@ИванЗадорожный-ъ7ы 20 күн бұрын
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.
@_aryan_570
@_aryan_570 20 күн бұрын
This is how I do these problems, sober.
@ИванЗадорожный-ъ7ы
@ИванЗадорожный-ъ7ы 20 күн бұрын
🤣
@ParthPatel-om4on
@ParthPatel-om4on 20 күн бұрын
why not just do this tomorrow 🤣
@Algorithmist
@Algorithmist 20 күн бұрын
haha, clearly from the video I was not 100% decision making
Advent of Code 2024 Day 13
56:06
Programming Live with Larry
Рет қаралды 282
Advent of Code 2024 - Day 14
1:56:33
Dylan Beattie
Рет қаралды 825
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Silly mistakes! Leetcode Weekly Contest 430 (Virtual 49th) with commentary
39:09
Programming Live with Larry
Рет қаралды 79
3395. Subsequences with a Unique Middle Mode I (Leetcode Hard)
59:33
Programming Live with Larry
Рет қаралды 28
🄵🄰🄸🄻  Leetcode 1760. Minimum Limit of Balls in a Bag
42:43
Pass OR Fail: Coding Journey
Рет қаралды 9
Advent of Code 2024 Day 14 - 12th gold star!
16:32
Neil Thistlethwaite
Рет қаралды 3,6 М.
Advent of Code 2024 - Day 14 - Rust
20:40
Slimsy Beetle
Рет қаралды 56
Day 14: Restroom Redoubt | Advent of Code 2024
44:08
William Y. Feng
Рет қаралды 908
Hardy's Integral
13:47
Michael Penn
Рет қаралды 19 М.
Tools EVERY Software Engineer Should Know
11:37
Tech With Tim
Рет қаралды 28 М.
Advent of Code 2024 Day 14
27:49
Jonathan Paulson
Рет қаралды 4,1 М.