Which edge case matters for this problem?

Practice this question from Union Find Components - Disjoint Set Pattern Practice Quiz, with options and an explanation.

Question

Which edge case matters for this problem?

Option A — Correct answer

Duplicate edges must not reduce the component count twice.

Option B

Negative stock prices

Option C

Uppercase vowels only

Option D

A rotated sorted array

Explanation

Duplicate edges must not reduce the component count twice.

Union Find Components - Disjoint Set Pattern Practice Quiz

All questions · Previous question

Open on QuizMaker