Array
3432. Count Partitions with Even Sum Difference
Given an array nums. A partition at index i splits it into a prefix [0..i] and a suffix [i+1..n−1] (both non-empty). Count the indices i where the difference of the prefix and suffix sums is even.
Loading…