LeetCode
Possible Bipartition
Click
here
for an explanation.