Which edge case matters for this problem?

Practice this question from Longest Consecutive Sequence - Hash Set Pattern Practice Quiz, with options and an explanation.

Question

Which edge case matters for this problem?

Option A — Correct answer

Duplicates should not change the answer.

Option B

Whether the graph is connected

Option C

Whether the array is rotated

Option D

Whether the tree is balanced

Explanation

Duplicates should not change the answer.

Longest Consecutive Sequence - Hash Set Pattern Practice Quiz

All questions · Previous question

Open on QuizMaker