Maximum subarray 2

when array is 2,30,40,-45,-500 the o/p is 70 not 72
according to this code.

hey @mikki18 can you share the code you wrote for this program?

https://ide.geeksforgeeks.org/OaVPIGGyIW

actually it worked fine now as i forgot to initialize cumsum array with 0

if your doubt is clear, please mark the doubt as resolved

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.