Which edge case matters for this problem?

Practice this question from Segment Tree - Range Sum Query Pattern Practice Quiz, with options and an explanation.

Question

Which edge case matters for this problem?

Option A — Correct answer

A disjoint range contributes 0 to a sum query.

Option B

Whether a graph has islands

Option C

Whether an interval touches another interval

Option D

Whether a string is a palindrome

Explanation

A disjoint range contributes 0 to a sum query.

Segment Tree - Range Sum Query Pattern Practice Quiz

All questions · Previous question

Open on QuizMaker