Appearance
Maintain a running result over a moving subarray — avoiding redundant recomputation at every step.