← Amazon questions

Rotting Oranges

Filed under Amazon · Also reported at Brane Enterprise, Deutsche Bank, Expedia, FactSet, Fanatics, Infosys, Microsoft, OYO and 4 more

In a grid, each cell is either empty (0), fresh orange (1), or rotten (2). Every minute, any fresh orange adjacent to a rotten one becomes rotten. Return the minimum time until no fresh oranges…

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.