Problem 2444 · Hard
Count subarrays whose minimum is minK and maximum is maxK.
Open the interactive visualisation