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.

Mid September, 2025

Meta

Staff

Late July, 2025

Meta

Senior

Find peak element

Early June, 2025

Meta

Senior

Comments

Your account is free and you can post anonymously if you choose.