Longest non-decreasing subarray after changing one element
- Warm-up: return the length of the longest run of consecutive elements that is strictly increasing.
- Given an integer array, return the longest contiguous non-decreasing subarray you can get after changing at most one element to any integer you like (or changing none).
No answer yet. Write the first one; the best answer gets endorsed.
