Data Structures and Algorithms ยท Advanced structures

Fenwick trees

A compact array-based structure that answers prefix-sum queries in logarithmic time.

Also known as: binary indexed tree, BIT, prefix sum tree.

Start a lesson on Fenwick trees

Learn first

Related topics