โ† Amazon questions

Find the size of the largest region of connected ones

Filed under Amazon

Given a binary matrix, find the size of the largest region of connected 1s. Connectivity is defined horizontally, vertically, and diagonally.

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.