#3818
Minimum Prefix Removal to Make Array Strictly Increasing
medium · 73.7% accepted · 52 likes · top 84%
Description
You are given an integer array nums.
You need to remove exactly one prefix (possibly empty) from nums.
Return an integer denoting the minimum length of the removed prefix such that the remaining array is strictly increasing.
Solution