The question said "you need to split them into several subsequences, where each subsequences consist of at least 3 consecutive integers". However, There is no way to split [1,2,3,4,5] into two subsequences, for example, but it seems like the problem expect this case to be True? Am I interpreting this wrong?
@totolipton You are right. The word "split" implies what you said. Maybe it would be better if the problem description had said: "split them into one or more subsequences" to avoid confusion. Moreover, the phrase "at least 3 consecutive integers" is not completely correct either. See also: