LeetCode

Partition Array into Disjoint Intervals

Click here for an explanation.