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