[LeetCode 1526] Minimum Number of Increments on Subarrays to F...
right], we first do a binary search to find the smallest minimum value index L such that L >= left; Then do another binary search to find the biggest minimum value index R such that R <= right. Now we have the valid index range for...