LeetCode
Divide Array Into Increasing Sequences
Click
here
for an explanation.