> the task here is to find a contiguous subarray…

Rather, the task must be “find a contiguous nonempty subarray”…

By the way, my intention is not to be nitpicking. An empty subarray is still a valid subarray of any array, and the sum of an empty subarray will be zero (0).

Most importantly, excellent article! Thanks much!