You are viewing a single comment's thread. Return to all comments →
A minor change as follows will fix your minor problem:
sum_r -= A[0]; for (int j=1; j<n; j++) { sum_l += A[j-1]; sum_r -= A[j]; ... }
Cheers
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Array
You are viewing a single comment's thread. Return to all comments →
A minor change as follows will fix your minor problem:
Cheers