Skip to content

Glossary: Coding Interviews in C++

std::accumulate

Also written: accumulate

A `<numeric>` function that adds up a range, starting from the value you give. `0LL` makes the total a `long long`.

Where the book teaches it

Related terms

Prefix sum