Prefix Sum
Prefix sum is a technique used to calculate the sum of elements in a given range in constant time.
Prefix sum is a technique used to calculate the sum of elements in a given range in constant time.
Kadane's Algorithm for finding the maximum contiguous subbarray