← Samsung questions

Largest Region in Matrix

Filed under Samsung

Given an n x m matrix containing 0s (representing water) and 1s (representing land), find the area of the largest region of connected 1s. Two 1s are connected if they are adjacent 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 Samsung questions

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