Sums up the elements for a range between start (inclusive) and end (exclusive). It takes only constant time (O(1)).
start
end
O(1)
The start index (inclusive).
The group sum for the range.
Sums up the elements for a range between
start(inclusive) andend(exclusive). It takes only constant time (O(1)).