Given an array of integers and multiple queries, count the number of contiguous segments containing a specific index where the element at that index is strictly the maximum value within that segment.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.