Problem 162 · Medium

Find Peak Element

Binary search toward the higher neighbor to guarantee landing on a peak.

Open the interactive visualisation