ameya's blog

By ameya, history, 7 years ago, In English

Hey everyone,
I've recently implemented a Fenwick Tree (probably better known a Binary Indexed Tree or a BIT) supporting range-based and point-based sum queries as well as updates, in C++ 14.
The approach was inspired by Petr's blog here!
The implementation is available on github here under fenwicktree.hpp.
Any comments and suggestions are welcome!

  • Vote: I like it
  • +16
  • Vote: I do not like it