DIY: Split Array into Consecutive Subsequences
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 consecutive integers and has a length of at least 3 ...
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy