The Overlap
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
Each maintenance entry in `windows` records the `start` and `end` minute of a window, filed in whatever order it was logged; collapse the entries into the continuous outages the on-call engineer has to report.
Summary
Overlapping windows are one outage. Collapse them into the truth.
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