what if all input elements are negative ,there do we need to include a separate condition where max=max of array;
what will be that condition ,if we use condition if sum==0 then max=max of array , but this will fail if 0 element is present in array
Maximum Subarray dp approach doubt
I got it , you cleared it in next video ,thanks