Arrays

Find Peak Element

medium
A peak element is strictly greater than its neighbors. Given `nums`, find a peak and return its index. `nums[-1]` and `nums[n]` are considered -∞. Any peak is acceptable.
Hint steps(0/1 revealed)
  1. 1

    Complete previous step or reveal to unlock this hint.