Closed Rounak-chauhan closed 3 years ago
please assign me this under java under LGMSOC'21
Hi, I want to implement this in C++ as apart of LGM-SOC'21. @Amit366 @Ayush7614 Please assign it to me. Thankyou!!
@Ayush7614 I'd like to work on this issue in C language under HCSSoC. Kindly assign me this issue.
Please assign me this issue in python language under LGMSOC'21 @Ayush7614
This is already done
Aim
Since -2 < 0, value -2 doesn't contribute to the sum. Thus, ignore it and proceed to the next index. Since 1 > 0, value 1 does contribute. Hence, compute -3+1 = -2 and store it in index 2. The result vector is so far: [-2, 1, -2, 4]. Last element to evaluate is 4. Since -2 < 0, -2 does not contribute positively to the sum. Thus, ignore it. Having checked all elements, the final result vector is: [-2, 1, -2, 4]. The maximum subarray is max(num)=4.
Details
Programming language