LeetCode
Maximum Length of Pair Chain
Click
here
for an explanation.