Courses
Tracks
All courses
/
Data Structures with Python
Fenwick and segment trees review
Fenwick and segment trees
13 / 13
Fenwick and segment trees
Fenwick and segment trees review
Question 1 of 4
25%
Position versus boundary
For public item position 0, where does a Fenwick update begin, and what does prefix(0) return?
Update at internal 0; prefix returns the first value.
Update at internal 1; prefix returns 0.
Update at internal 1; prefix returns the first value.
Submit Answer