• + 0 comments
    long tempMax = 0;
        long max = 0;
        for(int i=1; i<=n; i++)
        {
            tempMax += numList[i]; 
            if(tempMax > max) max = tempMax;
        }
    
                What is this code doing , why we cant use  numList.Sum()