AlgorithmsPrefix Sums

Prefix Sums

A technique for preprocessing arrays to answer range sum queries in constant time.