arrow_back Back to Challenges

#162 Find Peak Element

Medium Acceptance 0%
description

Problem Description

A peak element is an element that is strictly greater than its neighbors. Given a 0-indexed integer array `nums`, find a peak element, and return its index. If the array contains multiple peaks, return the index to any of the peaks.

checklist Constraints

See problem description for detailed constraints.

science Examples

Case #1

In: # See problem description for input format
Out: # Expected output

Mastery Tags

Arrays Binary Search

Hiring Companies

Goldman Sachs Salesforce
code

Integrated IDE

code_blocks
Coding
psychology
Aptitude