Loading interview...
The Output Peak
A hard Python mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- Python
- Difficulty
- hard
- Seniority
- senior
Interview Prompt
The data pipeline tracks daily throughput deltas: positive values mean more rows processed than the day before, negative values mean fewer. The team wants to find the best consecutive stretch of days where cumulative improvement was highest. Write a function that finds the contiguous subarray with the largest sum and returns both the sum and the subarray itself.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your python solution with real code execution
- Get instant feedback and a hire/no-hire decision