Cumulative Sum Calculation
cpp-maximum-subarray-sum-2
kaniket9811_62464638c1639a8f
(Kaniket9811 62464638c1639a8f)
January 16, 2024, 9:13am
#1
This code should give wrong output as for i=0 current sum is equal to cumsum[0]-cumsum[-1]