Four algorithms for $\max\bigl\{A[i] + \cdots + A[j-1] \;:\; 0 \;\le\; i \;\le\; j \;\le\; n\bigr\}$ on the same input: brute force, reusing sums, divide & conquer, and the linear sweep. Step through them one operation at a time, measure them, or race them against each other. The cost measure throughout is the number of additions.
#
are ignored, so a preset can carry a caption. Example:
31 -41 59 26 -53 58 97 -93 -23 84.