LeetCode
Split Array With Same Average
Click
here
for an explanation.