loopprep

Infection After K Rounds

total 00:00
Hard45 minPremium Asked at OpenAI

    Spread an infection across a grid for exactly k rounds, then compute when each cell falls, how long until things settle, and make it all independent of k.

    The five steps
    1. Exactly k rounds 9 min
    2. When does each cell fall? 9 min
    3. When does it settle? 7 min
    4. Make k irrelevant 11 min
    5. Diagonal spread 8 min