Loading...

Merge Overlapping Time Ranges

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
senior

Problem

Our scheduling service receives overlapping meeting requests that need consolidation. Write a function called merge_intervals that takes a list of (start, end) tuples, merges overlapping ranges, and returns non-overlapping intervals sorted by start time.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.