...

/

DIY: Split Array into Consecutive Subsequences

DIY: Split Array into Consecutive Subsequences

Solve the interview question "Split Array into Consecutive Subsequences" in this lesson.

Problem statement

Given an array sorted in ascending order, determine if it’s possible to split the array into one or more subsequences such that each subsequence consists of ...