Loading interview...
The Schedule Cleaner
A medium Python mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- Python
- Difficulty
- medium
- Seniority
- mid, senior
Interview Prompt
Users hit play, pause, rewind, and scrub on our streaming platform, producing overlapping viewing intervals. The analytics team needs total unique watch time, but first the overlaps need to be collapsed. Given a list of [start, end] intervals that may overlap and arrive in any order, produce the smallest set of non-overlapping intervals that covers the same time.
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