Skip to content

Commit e75cf98

Browse files
committed
's algorithm
1 parent 5a79709 commit e75cf98

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

classicalAlgos/kadanesAlgorithm/kadanesAlgorithm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ int maxSumarray(int a[], int size){
55
int i;
66
int max_sum_so_far=0;
77
int max_ending_here = 0;
8-
98
for(i=0;i<size;i++){
109
max_ending_here = max_ending_here + a[i];
1110
if(max_ending_here < 0)

0 commit comments

Comments
 (0)