Back to QuestionsPractice with This Question
Find Peak Element
32.8K views•Asked at Salesforce•
Medium
Question Explain
A peak element is an element that is strictly greater than its neighbors. Find a peak element and return its index. Use a modified Binary Search.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.