Given a grid of integers representing people where 0 is empty, 1 is fresh, and 2 is infected (Covid), simulate the spread of infection. Every minute, any fresh person adjacent (4-directionally) to an…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.