Find Peak Element
A peak element in an array is an element that is strictly greater than its neighbors. Given an array of integers, find a peak element, and return its index. If the array contains multiple peaks, return any of them.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)