You are given an integer array nums and a non negative integer k.
A sequence of integers seq is defined as good if there are at most k indices i within the range seq.length seq[i] seq[i + 1].
Return the maximum possible length of a good subsequence of nums.
Constraints:
nums.length
nums[i]
k nums.length,
You are given an integer array nums and a non negative integer k.
A sequence of integers seq is defined as good if there are at most k indices i within the range seq.length seq[i] seq[i + 1].
Return the maximum possible length of a good subsequence of nums.
Constraints:
nums.length
nums[i]
k nums.length,