Collective health | backend engineer | Coding | Phone Screen
SEselvaraj.premkumar·
Interview date
April 6, 2026
Company
collective health
Role
backend engineer
Level
Unspecified
Region
Unspecified
Round type
Coding
Team/Org
General Hire
Stage
Phone Screen
You have a graph of n nodes. You are given an integer n and an array edges where edges[i] = [ai, bi] indicates that there is an edge between ai and bi in the graph. Return the number of connected components in the graph. Input: n = 5, edges = [[0,1],[1,2],[3,4]] Output: 2 Input: n = 5, edges = [[0,1],[1,2],[2,3],[3,4]] Output: 1
Sign in to view the full interview experience
Create or use your InterviewDB account to read the full Warren post and all shared details.
Sign in to continue