Which edge case matters for this problem?
Practice this question from Fenwick Tree - Binary Indexed Prefix Sum Pattern Practice Quiz, with options and an explanation.
Question
Which edge case matters for this problem?
Option A — Correct answer
Index 0 must be handled carefully in 1-indexed Fenwick code.
Option B
Whether a graph has islands
Option C
Whether an interval touches another interval
Option D
Whether a string is a palindrome
Explanation
Index 0 must be handled carefully in 1-indexed Fenwick code.