665. Non-decreasing Array
Medium
Input: nums = [4,2,3]
Output: true
Explanation: You could modify the first 4 to 1 to get a non-decreasing array.Input: nums = [4,2,1]
Output: false
Explanation: You can't get a non-decreasing array by modify at most one element.Last updated