Which edge case matters for this problem?

Practice this question from Connected Components - Adjacency DFS Pattern Practice Quiz, with options and an explanation.

Question

Which edge case matters for this problem?

Option A — Correct answer

Isolated nodes still count as components.

Option B

Negative stock prices

Option C

Uppercase vowels only

Option D

A rotated sorted array

Explanation

Isolated nodes still count as components.

Connected Components - Adjacency DFS Pattern Practice Quiz

All questions · Previous question

Open on QuizMaker