Loading...
The Mountain Peak
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- mid, senior
Problem
A telemetry system needs to efficiently locate local maxima in streaming data buffers. Given a list of integers, return the index of any peak element - one that is strictly greater than its neighbors. You may assume the array boundaries are treated as negative infinity, and you may return any valid peak index.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.