Maximum subarray sum

I am getting wrong answer on test case 1.Unable to figure out the problem

hey @Prateek-Sengar-2189285757790830, in line no 20 it should be csum<0 instead of a[i]<0.

1 Like

hey @Prateek-Sengar-2189285757790830 , if your query is resolved. Please mark this doubt as resolved and rate me on the basis of your experience.
rating option will appear when to mark this doubt as resolved