Given an integer array nums sorted in non decreasing order, determine if it is possible to partition nums into one or more subsequences such that:
Each subsequence is composed of consecutive increasing integers where each value is exactly
Every subsequence has a length of at least
Return true if such a partition is possible, or false otherwise.
Constraints:
nums.length
nums[i]
nums is sorted in non decreasing order.
Given an integer array nums sorted in non decreasing order, determine if it is possible to partition nums into one or more subsequences such that:
Each subsequence is composed of consecutive increasing integers where each value is exactly
Every subsequence has a length of at least
Return true if such a partition is possible, or false otherwise.
Constraints:
nums.length
nums[i]
nums is sorted in non decreasing order.