Question DSA-SRCH-0051
MediumHow can you find the peak element (greater than its neighbours) of an array in O(log n)?
- A.
Binary search moving towards the larger neighbour of mid
- B.
Sort the array
- C.
Sign up free to see the answer and a step-by-step explanation.