Find the Peak Index in a Mountain Array
Given an integer array arr that first strictly increases and then strictly decreases, return the zero-based index of its unique peak in O(log n) time.
To make the problem executable, use the foll...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
