1121. Divide Array Into Increasing Sequences
Description
**Input:** nums = [1,2,2,3,3,4,4], k = 3
**Output:** true
**Explanation:** The array can be divided into two subsequences [1,2,3,4] and [2,3,4] with lengths at least 3 each.**Input:** nums = [5,6,6,7,8], k = 3
**Output:** false
**Explanation:** There is no way to divide the array using the conditions required.ac
Last updated