CCD - Editorial

It should be C[R] + C[L - 1] if R - L is even and C[R] - C[L - 1] otherwise.