← Amazon questions
CodingReported in a candidate post, Aug 2025

Rotten oranges

Filed under Amazon · Also reported at Arcesium, Bloomberg, BNY Mellon, Fiorano, Flipkart, Gameskraft, HSBC

Given an m x n grid where 0 is empty, 1 is a fresh orange and 2 is a rotten orange, each minute every fresh orange adjacent (4 directions) to a rotten one becomes rotten. Return the minimum minutes…

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.