Expand description
Updates one element in the Fenwick tree stored in a borrowed slice (zero-based).
Conceptually performs a[i] += delta
on the original array a
.
Panics
Panics if fenwick[i]
is out of bound.
Examples
See module-level example.
Updates one element in the Fenwick tree stored in a borrowed slice (zero-based).
Conceptually performs a[i] += delta
on the original array a
.
Panics if fenwick[i]
is out of bound.
See module-level example.