A peak is strictly greater than its neighbors. Return the index of any peak element, running in O(log n) time.
Practise this challenge
All coding challenges