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.

Early April, 2026

Meta

Junior

Early April, 2026

Meta

Senior

Early March, 2026

Meta

Mid-level

Variant of left and right side view but should not repeat or show duplicates

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