Find a local minimum element in an array in better than linear time.
Unlock detailed company stats for this questionUpgrade
Find a local minimum in an array, where an element that is smaller than or equal to its neighbors counts as a local minimum.
Expect follow-ups like
- Consider only strictly smaller elements as local minima.
- How do you handle duplicates such as 1 2 2 2 2 2 2?
Community answers
No answers contributed by the community yet.


