fix(CPlusPlus): spelling problem
parent
4fc4e6e25b
commit
0c08f65624
|
@ -20,7 +20,7 @@ int maxSubArrSum_A(int a[],int n){
|
|||
return maxSum;
|
||||
}
|
||||
|
||||
// Appraoch B - Cumulative Sum Approach O(n^2)
|
||||
// Approach B - Cumulative Sum Approach O(n^2)
|
||||
int maxSubArrSum_B(int a[],int n){
|
||||
int currSum[n+1]; currSum[0] = 0;
|
||||
for(int i=1;i<=n;++i){
|
||||
|
@ -66,4 +66,4 @@ int main(){
|
|||
cout<<maxSubArrSum_B(b,7)<<endl;
|
||||
cout<<maxSubArrSum_C(b,7)<<endl;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue