A simple algorithm to speed up repeated summations!
0612 TV w/ NERDfirst — Jul 21, 2023 — talk
Why watch
This video teaches the prefix sum (Quicksum) algorithm for efficiently computing repeated summations over sublists. The tutorial shows how preprocessing once in O(n) time enables O(1) range sum queries instead of O(n) naive looping, and extends the technique to higher dimensions for 2D prefix sums.