Loading...
The Multiplier Rush
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 financial modeling tool needs to find the maximum gain achievable by multiplying a contiguous sequence of values in a data stream. Given a list of integers, return the maximum product of any contiguous subarray. Be careful with negative numbers.
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.