← Amazon questions

Find region with maximum brightness

Filed under Amazon

Given a 2D matrix where each cell contains a color ID and a brightness value, find the connected component of a single color that has the maximum total brightness.

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.