Find the index of any peak element in an integer array.
Constraints
Example
>>> find_peak_index([1, 2, 3, 1]) 2 >>> find_peak_index([1, 2, 1, 3, 5, 6, 4]) 1 >>> find_peak_index([3, 2, 1]) 0
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints