You are given a nums.
A subarray is called incremovable if, after removing it, the remaining elements of nums are strictly increasing.
Return the total number of incremovable subarrays in nums.
Note: An empty remaining sequence is also considered strictly increasing. A subarray is a contiguous non empty sequence of elements within an array.
Constraints:
nums.length
nums[i]
You are given a nums.
A subarray is called incremovable if, after removing it, the remaining elements of nums are strictly increasing.
Return the total number of incremovable subarrays in nums.
Note: An empty remaining sequence is also considered strictly increasing. A subarray is a contiguous non empty sequence of elements within an array.
Constraints:
nums.length
nums[i]