Struct competitive_programming_rs::data_structure::fenwick_tree::FenwickTree [] [src]

pub struct FenwickTree { /* fields omitted */ }

FenwickTree is a data structure that can efficiently update elements and calculate prefix sums in a table of numbers. https://en.wikipedia.org/wiki/Fenwick_tree

Methods

impl FenwickTree
[src]
[]

[src]
[]

Constructs a new FenwickTree. The size of FenwickTree should be specified by size.

[src]
[]

Returns a sum of range [l, r)

[src]
[]

Returns a sum of range [0, k)

Trait Implementations

Auto Trait Implementations