Files
javascript-algorithms/src/data-structures/tree/fenwick-tree
Christopher Samuel 1a4fe11a80 Added Binary Indexed Tree / Fenwick Tree Implementation (#51)
* added fenwick tree implementation

* added fenwick tree implementation
2018-06-06 06:25:31 +03:00
..

Binary Indexed Tree / Fenwick Tree

A simple data structure that supports fast range queries in an array. However, it is usually only valid for reversible operations, like addition and subtraction

This implementation uses the basic range sum query and point update. All the indexes are 1-based