fix(CPlusPlus): spelling problem

pull/905/merge
Ming Tsai 2022-10-15 20:34:38 -04:00 committed by GitHub
parent 4fc4e6e25b
commit 0c08f65624
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ int maxSubArrSum_A(int a[],int n){
return maxSum; 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 maxSubArrSum_B(int a[],int n){
int currSum[n+1]; currSum[0] = 0; int currSum[n+1]; currSum[0] = 0;
for(int i=1;i<=n;++i){ for(int i=1;i<=n;++i){