You are given a nums.
In one operation, you can select any contiguous subarray of nums and replace it with a single element equal to the sum of its elements.
Return the maximum possible length of a non decreasing array that can be obtained by applying this operation any number of times.
Constraints:
nums.length
nums[i]
You are given a nums.
In one operation, you can select any contiguous subarray of nums and replace it with a single element equal to the sum of its elements.
Return the maximum possible length of a non decreasing array that can be obtained by applying this operation any number of times.
Constraints:
nums.length
nums[i]