Top "Fenwick-tree" questions

A Fenwick tree (or binary indexed tree) is a fast data structure for storing and maintaining cumulative frequency tables.

Solving Range Minimum Queries using Binary Indexed Trees (Fenwick Trees)

Formally, the Range Minimum Query Problem is: Given an array A[0, N-1] , Find the position of the element with the …

algorithm data-structures tree fenwick-tree rmq
Is it possible to query number of distinct integers in a range in O(lg N)?

I have read through some tutorials about two common data structure which can achieve range update and query in O(…

algorithm data-structures segment-tree fenwick-tree
Number of Increasing Subsequences of length k

I am trying to understand the algorithm that gives me the number of increasing subsequences of length K in an …

c++ algorithm lis fenwick-tree