~/Prefix Scan Example in Python
Jul 15, 2021
A prefix scan, also called prefix sum, computes the cumulative sum of a list up to each index. It is often used in array algorithms.
Here is a simple Python example:
Jul 15, 2021
A prefix scan, also called prefix sum, computes the cumulative sum of a list up to each index. It is often used in array algorithms.
Here is a simple Python example: