Given an array of integers nums and an integer k, determine whether there exist k that are both strictly increasing.
Specifically, check if there is an index i such that both the subarray nums[i … i + k - 1] and the subarray nums[i + k … i + 2 * k - 1] are strictly increasing.
Return true if such adjacent subarrays exist, and false otherwise.
Constraints:
nums.length
k nums.length
nums[i]
Given an array of integers nums and an integer k, determine whether there exist k that are both strictly increasing.
Specifically, check if there is an index i such that both the subarray nums[i … i + k - 1] and the subarray nums[i + k … i + 2 * k - 1] are strictly increasing.
Return true if such adjacent subarrays exist, and false otherwise.
Constraints:
nums.length
k nums.length
nums[i]