โ† Amazon questions
CodingMedium

Carrot field epidemic grid modification

Filed under Amazon

Given a 2D grid of good (1) and bad (0) carrots, a good carrot turns bad if all its four cardinal neighbors are bad. Simulate this process until no more changes occur.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.