← Amazon questions

Largest region of 1s

Filed under Amazon

Given a 2D binary matrix where 1 represents land and 0 represents water, find the area (number of cells) of the largest connected region of 1s. Cells are connected 8-directionally (horizontally…

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.