Similarly , store suffix sums of elements at even and odd indices
for i in range ( N - 3 , - 1 , - 2 ) : NEW_LINE INDENT suffix [ i ] = arr [ i ] + suffix [ i + 2 ] NEW_LINE DEDENT for i in range ( N - 4 , - 1 , - 2 ) : NEW_LINE INDENT suffix [ i ] = arr [ i ] + suffix [ i + 2 ] NEW_LINE DEDENT