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.
@Algorithmist20 күн бұрын
I can buy this!
@ИванЗадорожный-ъ7ы20 күн бұрын
Hahaha Girl on the bed -Larry, are we gonna have fun? Larry looking for tree -I have a fun
@cursed_nerd20 күн бұрын
Drunk Larry is Fun
@DocBolle20 күн бұрын
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 🙂.
@Algorithmist20 күн бұрын
a lot of fun solutions to part 2!
@ИванЗадорожный-ъ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_57020 күн бұрын
This is how I do these problems, sober.
@ИванЗадорожный-ъ7ы20 күн бұрын
🤣
@ParthPatel-om4on20 күн бұрын
why not just do this tomorrow 🤣
@Algorithmist20 күн бұрын
haha, clearly from the video I was not 100% decision making