Maximum Length of Semi-Decreasing Subarrays
Find the longest subarray of length at least two whose first value is strictly greater than its last; scan each left end inward from the far right.
Find the longest subarray of length at least two whose first value is strictly greater than its last; scan each left end inward from the far right.