Mental Model
Find the largest sum of a continuous part of an array by keeping track of the best sum ending at each position.
Analogy: Imagine walking along a path with ups and downs in height. You want to find the highest hill segment you can stand on continuously without jumping off.
Array: [ -2, 1, -3, 4, -1, 2, 1, -5, 4 ] Indices: 0 1 2 3 4 5 6 7 8
