#algorithms

Prefix Sum

Prefix sum is a technique used to calculate the sum of elements in a given range in constant time.