The Event Overlap Detector
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
- L5
Interview Prompt
Given events as a list of [name, start, end], return all pairs [name_a, name_b] where the two events overlap in time (name_a's interval and name_b's interval share at least one instant). Intervals are half-open [start, end): an event ending exactly when another starts does not overlap. Each pair appears exactly once with name_a's interval starting no later than name_b's. Sort output by (start of name_a, start of name_b).
Summary
Overlapping events. The calendar knows.
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