diff --git a/max sum array/maxsumsubarray_o(n)_index.c b/max sum array/maxsumsubarray_o(n)_index.c index 91d6730..f0916db 100644 --- a/max sum array/maxsumsubarray_o(n)_index.c +++ b/max sum array/maxsumsubarray_o(n)_index.c @@ -6,7 +6,7 @@ int main(void) int size=sizeof(arr)/sizeof(arr[0]); int i,j,imax,jmax; int sum; - int max=-32767; + int max=INT_MIN; i=0; sum=0; for(j=i;j