What is the goal of Connected Components?
Practice this question from Connected Components - Adjacency DFS Pattern Practice Quiz, with options and an explanation.
Question
What is the goal of Connected Components?
Option A — Correct answer
Count disconnected groups in an undirected graph.
Option B
Sort values and use binary search only
Option C
Count characters in a string
Option D
Reverse a linked list
Explanation
Count disconnected groups in an undirected graph.