Find the maximum element present on both sides of the peak of an array.
Unlock detailed company stats for this questionUpgrade
Given an array with a peak (it always exists), find the maximum element that exists on both the left and the right of the peak. N <= 1e5, a[i] <= 1e9.
Community answers
No answers contributed by the community yet.
Related questions
Find the second maximum element in an array.Find the maximum sum subarray if you may flip the sign of one element.Find the maximum element in a rotated sorted array.Related courses

Course

Course
Course
