Do we need to do further combination after the first round combination based on the original input?
I think you need to.
If the original input is like [1, 5], [3, 8], [4, 10], the output should be like [1, 10] instead of [1, 8], [4, 10].
I don't think this question make sense. Because if your algorithm works right, then the output will be the final combination.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.