Loading...
The Peak Finder
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- easy
- Seniority
- junior
Problem
Our embedded analytics module can't use Python built-ins due to sandbox restrictions. Write a function called find_max that takes a list of integers and returns the largest value without using max(). Return None for empty lists.
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.