Find number of groups of adjacent 1s in a matrix
Filed under Citrix
The question
Given a matrix of 1s and 0s, find the number of groups of adjacent 1s using 8-connectedness adjacency.
No write-up yet. Related questions below have one.
Related Citrix questions
Collected from public candidate posts and coding forums. Updated Nov 2026.