LeetCode
Split Array with Equal Sum
Click
here
for an explanation.