Search
⌘K
Leetcode 162. Find Peak Element
Find any index of a "peak" (an element strictly greater than its neighbors, with array ends treated as -∞) in an integer array where adjacent values differ, requiring an O(log n) solution. The core challenge is to exploit the array's rising/falling pattern with binary-search-like reasoning to locate a local maximum without linear scanning.
Asked at:
Meta
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Late April, 2026
Meta
Mid-level
Early April, 2026
Meta
Junior
Early April, 2026
Meta
Senior
Hello Interview Premium
Your account is free and you can post anonymously if you choose.