Find groups of two adjacent ones in a 0/1 matrix
Filed under Thoughtworks
The question
Given a 2D matrix of zeros and ones, find the groups of two, where adjacent ones belong to the same group.
No write-up yet. Related questions below have one.
Related Thoughtworks questions
Collected from public candidate posts and coding forums. Updated Nov 2026.