Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Can we use the accumulative sum to keep track of all the odd-sum sub-arrays ?
if the current accu sum is odd, we care only about previous even accu sums and vice versa.