Tap here to switch tabs
Problem
Submissions

Problem: Remove One Element to Make Array Strictly Increasing

Remove One Element to Make Array Strictly Increasing asks whether an integer array can become strictly increasing after exactly one element is removed. An already increasing array qualifies too.

Statement

Given a 00 indexed integer array nums, return true if it can be made strictly increasing after removing exactly one element, or false otherwise. If the array is already strictly increasing, removing any single element will also result in a strictly increasing array.

Note: An array arr is strictly increasing if arr[i - 1] < arr[i] holds for every index ii such that 1≤i<1 \leq i < arr.length.

Constraints:

  • 2≤2 \leq nums.length ≤1000\leq 1000

  • 1≤1 \leq nums[i] ≤1000\leq 1000

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Remove One Element to Make Array Strictly Increasing

Remove One Element to Make Array Strictly Increasing asks whether an integer array can become strictly increasing after exactly one element is removed. An already increasing array qualifies too.

Statement

Given a 00 indexed integer array nums, return true if it can be made strictly increasing after removing exactly one element, or false otherwise. If the array is already strictly increasing, removing any single element will also result in a strictly increasing array.

Note: An array arr is strictly increasing if arr[i - 1] < arr[i] holds for every index ii such that 1≤i<1 \leq i < arr.length.

Constraints:

  • 2≤2 \leq nums.length ≤1000\leq 1000

  • 1≤1 \leq nums[i] ≤1000\leq 1000