CodingReported in a candidate post, Jul 2025
Find the size of the largest cluster of 1s in a binary image
Filed under KLA
The question
Given a 2D 0/1 image, find the largest cluster of adjacent 1s, where adjacency is only left, right, up and down (no diagonals) and size is the number of 1s.
No write-up yet. Related questions below have one.
Related KLA questions
Collected from public candidate posts and coding forums. Updated Nov 2026.