CodingReported in a candidate post, Dec 2020
Number of connected components in a matrix
Filed under LinkedIn
The question
Given a matrix of alphabets, find the number of connected components considering all 8 neighbors.
No write-up yet. Related questions below have one.
Related LinkedIn questions
Collected from public candidate posts and coding forums. Updated Nov 2026.