Merge Available Slots
Medium📝 Description
Merge overlapping time slots to show continuous availability.
Input Format
[[start1, end1], [start2, end2], ...] (list of time intervals)
Output Format
[[merged_start, merged_end], ...]
Constraints
1 ≤ number of slots ≤ 10^4, 0 ≤ start < end ≤ 24
🔍 Sample Input
[[9, 11], [10, 12], [14, 16]]
✅ Sample Output
[[9, 12], [14, 16]]
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run