The Output Peak
A hard Python mock interview question on DataDriven, with an AI interviewer who asks follow-up questions and a hire or no-hire decision at the end.
- Domain
- Python
- Difficulty
- hard
- Seniority
- L5
Interview Prompt
A monitoring job emits net-throughput readings run-length encoded in `readings` as `[value, count]` pairs. Find the consecutive run of readings with the greatest total and return that total together with the run, given back as the `[value, count]` pairs that cover it.
Summary
One stretch outpaced all the others.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write and run your Python against test cases
- Answer the interviewer's follow-up questions, then get a hire or no-hire decision