You are given an integer array nums.
You must remove a prefix from nums such that the remaining array is strictly increasing.
Return the minimum length of the prefix that needs to be removed.
Note: An array is considered strictly increasing if every element is strictly greater than the element immediately preceding it. An array with
or element is also strictly increasing.
Constraints:
nums.length
nums[i]
You are given an integer array nums.
You must remove a prefix from nums such that the remaining array is strictly increasing.
Return the minimum length of the prefix that needs to be removed.
Note: An array is considered strictly increasing if every element is strictly greater than the element immediately preceding it. An array with
or element is also strictly increasing.
Constraints:
nums.length
nums[i]