Find the Number of Subarrays Where Boundary Elements Are Maximum

hardSolve on LeetCode
Last edited: August 2, 2025