I have doubt about max_sum

why we are taking curr_sum = INT_MIN
there is one possiblity that we don’t chhose any subarray let say 0 element in subarray
isn’t that case applied here .?

Hi Abhishek… the condition here is that at least one element has to be included… thus taking curr_sum = INT_MIN

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.