Maximum subarray sum

why its showing the previous output of first test case in the second test case output when we are taking all numbers as negative.and how can we correct it?

also its not passing any test case.

Hey @lovely
Mentioned the changes in comments : https://ide.codingblocks.com/s/367619 :slight_smile:
If this resolves your query then please mark it ax=s resolved :slight_smile: