As we were taught in previous lessons that the sub array has to be continuous but when we take the negative value as 0,are’nt we making the sub array discontinuous?
How can a non continuous subarray be considered for maximum sum?
A subarray is always continuous. And it has atleast one element.
What is your question here? I didn’t get it. Please reframe it.