From 0c08f6562466e6311058c1ae2201b07c56caffa2 Mon Sep 17 00:00:00 2001 From: Ming Tsai <37890026+ming-tsai@users.noreply.github.com> Date: Sat, 15 Oct 2022 20:34:38 -0400 Subject: [PATCH] fix(CPlusPlus): spelling problem --- algorithms/CPlusPlus/Arrays/max-subarray-sum.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/algorithms/CPlusPlus/Arrays/max-subarray-sum.cpp b/algorithms/CPlusPlus/Arrays/max-subarray-sum.cpp index 98100664..df8872fd 100644 --- a/algorithms/CPlusPlus/Arrays/max-subarray-sum.cpp +++ b/algorithms/CPlusPlus/Arrays/max-subarray-sum.cpp @@ -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<