ashok bakthavathsalam
Professional Pirates
1 min readOct 30, 2019

--

> 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!

--

--

ashok bakthavathsalam
Professional Pirates

Entrepreneur. Struggle-to-code evangelist. Paradox collector. Black coffee enthusiast. And yes, squash!