#3818
Minimum Prefix Removal to Make Array Strictly Increasing
pupil · 525 · lc medium +28 · 73.7% accepted · 52 likes · top 84%
Description
Given an integer array nums, delete a prefix (which may be empty) from the beginning of the array. Find the shortest such prefix whose removal leaves the remaining elements strictly increasing, and return its length.
Code
1
2
3